visual studio - Pass msbuild properties to devenv.exe on the command line -


i building solution automatically devenv.exe on our ci server, works totally fine. deployment purposes added nuget package (namely octopack). documentation tells me pass properties msbuild when building, using devenv, not possible.

through research, learned can add propertygroup the .csproj of project, add these properties. prefer not that, need replace values (like version number) in properties, not want put placeholders strings. additionally, need able have propertygroups active when building on ci server, not when developing , building locally.

this leads question: can somehow pass properties, passed msbuild (via /p:), devenv on command line?

(i'm posting answer question can closed out).

  1. i'd suggest not using devenv.exe.

  2. start using msbuild.exe.

  3. pass in parameters using

/property:name=value /p:name=value

  1. use nuget.exe restore mysolution.sln restore packages.

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -