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).
i'd suggest not using devenv.exe.
start using msbuild.exe.
pass in parameters using
/property:name=value /p:name=value
- use nuget.exe restore mysolution.sln restore packages.
Comments
Post a Comment