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:

enter image description here

regarding visual studio build task dotnet publish command line, can specify runtimeidentifier , targer arguments in msbuild arguments, simple steps:

  1. add variable build definition, example: runtime win7-x64
  2. add .net core restore task (arguments: -r $(runtime))
  3. add visual studio build task (msbuild arguments: /p:runtimeidentifier=$(runtime) /t:publish), check above screenshot.

on other hand, there .net core publish task it:

enter image description here


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -