开发者

To specify Startup Program in Visual C# Express Edition 2008

开发者 https://www.devze.com 2022-12-10 19:57 出处:网络
I usually do the following at office - Set the startup program for the project to System32\\dllhost.exe, and set the

I usually do the following at office - Set the startup program for the project to System32\dllhost.exe, and set the command line arguments for the startup program accordingly. This used to work perfectly fine, because I was running Visual Studio 2008. However, one of my developers use C# Express Edition and they need to do a similar t开发者_Python百科hing. We are not sure, where to set this or how to do it?

Please suggest how to do this or point us in the right directions.


In the CSProj file, under the PropertyGroup tag, you will have the following tags. Add the appropriate details, and you should be good to go.

<StartAction>Program</StartAction>
<StartArguments>/ProcessId:{C401EBE5-70E8-4AB6-935A-F0589EA01004}</StartArguments>
<StartPage>
</StartPage>
<StartProgram>C:\WINDOWS\system32\dllhost.exe</StartProgram>
<StartURL>
</StartURL>
<StartWorkingDirectory>
</StartWorkingDirectory>
<StartWithIE>true</StartWithIE>

How I did it -

  1. Looked at each file in my system, which was built with VS2008.
  2. In the CSProj file, I had the following details, I copy pasted the same onto the developer's PC and it worked.
0

精彩评论

暂无评论...
验证码 换一张
取 消