title | ms.custom | description | ms.topic | ms.assetid | ms.author | author | ms.date | monikerRange |
---|---|---|---|---|---|---|---|---|
Visual Studio Build build and release task |
seodec18 |
Visual Studio Build build and release task for Azure Pipelines and Team Foundation Server (TFS) |
reference |
11E76804-BA67-4086-9CF1-8CB2887169BA |
vijayma |
vijayma |
10/18/2021 |
>= tfs-2015 |
[!INCLUDE temp]
::: moniker range="<= tfs-2018"
[!INCLUDE temp]
::: moniker-end
Use this task to build with MSBuild and set the Visual Studio version property. Learn more about installing Visual Studio images on Azure.
msbuild, visualstudio
Azure Pipelines: If your team wants to use Visual Studio 2017 with the Microsoft-hosted agents, select vs2017-win2016 as your default build pool. See Microsoft-hosted agents.
::: moniker range="> tfs-2018"
[!INCLUDE temp]
::: moniker-end
Argument | Description |
---|---|
solution Solution |
(Required) If you want to build a single solution, click the ... button and select the solution. If you want to build multiple solutions, specify search criteria. You can use a single-folder wildcard (`*`) and recursive wildcards (`**`). For example, `**.sln` searches for all .sln files in all subdirectories. Make sure the solutions you specify are downloaded by this build pipeline. On the Repository tab:
Tips:
Default value: **\*.sln |
vsVersion Visual Studio Version |
To avoid problems overall, you must make sure this value matches the version of Visual Studio used to create your solution. The value you select here adds the
Default value: latest |
msbuildArgs MSBuild Arguments |
(Optional) You can pass additional arguments to MSBuild. For syntax, see MSBuild Command-Line Reference. |
platform Platform |
(Optional) Specify the platform you want to build such as Tips:
|
configuration Configuration |
(Optional) Specify the configuration you want to build such as Tip: Declare a build variable such as |
clean Clean |
(Optional) Set to False if you want to make this an incremental build. This setting might reduce your build time, especially if your codebase is large. This option has no practical effect unless you also set Clean repository to False. Set to True if you want to rebuild all the code in the code projects. This is equivalent to the MSBuild |
Advanced | |
maximumCpuCount Build in Parallel |
(Optional) If your MSBuild target configuration is compatible with building in parallel, you can optionally check this input to pass the /m switch to MSBuild (Windows only). If your target configuration is not compatible with building in parallel, checking this option may cause your build to result in file-in-use errors, or intermittent or inconsistent build failures. Default value: false |
restoreNugetPackages Restore NuGet Packages |
(Important) This option is deprecated. Make sure to clear this checkbox and instead use the NuGet Installer build task. Default value: false |
msbuildArchitecture MSBuild Architecture |
Optionally supply the architecture (x86, x64) of MSBuild to run Tip: Because Visual Studio runs as a 32-bit application, you could experience problems when your build is processed by a build agent that is running the 64-bit version of Team Foundation Build Service. By selecting MSBuild x86, you might resolve these kinds of problems. Default value: x86 |
logProjectEvents Record Project Details |
Optionally record timeline details for each project
Default value: true |
createLogFile Create Log File |
Optionally create a log file (Windows only)
Default value: false |
logFileVerbosity Log File Verbosity |
Optional log file verbosity
Default value: normal |
customVersion Custom Version |
(Optional) Allows setting custom version of Visual Studio. Examples: Tip: Make sure that the required version of Visual Studio is installed in the system.
|
Control options |
This task is open source on GitHub. Feedback and contributions are welcome.
[!INCLUDE temp]
[!INCLUDE temp]
::: moniker range="< azure-devops"
[!INCLUDE temp]
::: moniker-end