c# - How do you specify command line arguments in a .csproj's StartProgram setting? -
i'm trying specify command line arguments executable in <startprogram>
value of <propertygroup>
looks this
<propertygroup> <startaction>program</startaction> <startprogram>$(solutiondir)\edge.express\node.exe</startprogram> </propertygroup>
i'm trying automate steps involved in attaching library running process team can straight debug library without additional ceremony (they're not familiar visual studio yet)
i copied node executable edge.express folder , express server configuration in server.js @ location. want this:
<propertygroup> <startaction>program</startaction> <startprogram>$(solutiondir)\edge.express\node.exe server</startprogram> </propertygroup>
but throws next exception
removing "server" arg fires instance of node.
how give "server" argument node.exe within <startprogram>
setting?
alternatively there way set startaction run batch script , force server startup script?
a quick search did not homecoming documentation on available startactions are
as hans pointed out: if want specify arguments <startaction>
program, have utilize <startarguments>
element:
<startaction>program</startaction> <startprogram>$(solutiondir)\edge.express\node.exe</startprogram> <startarguments>server</startarguments>
c# visual-studio-2013 msbuild
No comments:
Post a Comment