c# - VSTS setting up Visual Studio Build task to do what command line does -
we can't seem self contained .exe built using visual studio build task of vsts. code typically use publishing manually on local computer .exe availabe:
dotnet publish -c release -r win7-x64
in vsts found can set $(buildplatform) x64, don't know how setup configuration visual studio build task duplicate command line.
regarding configuration visual studio build task, can specify in configuration input box directly:
regarding visual studio build task dotnet publish command line, can specify runtimeidentifier , targer arguments in msbuild arguments, simple steps:
- add variable build definition, example:
runtime
win7-x64
- add .net core restore task (arguments:
-r $(runtime)
) - add visual studio build task (msbuild arguments:
/p:runtimeidentifier=$(runtime) /t:publish
), check above screenshot.
on other hand, there .net core publish task it:
Comments
Post a Comment