Created
September 21, 2019 16:22
-
-
Save devops-school/6456a092b76ebf6f4f3980fd140aa109 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Import WebApplication.targets in your build script like so: | |
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> | |
- Execute the TransformXml build task in your build script target: | |
<Target Name="MyBuildScriptTarget"> | |
<TransformXml Source="Web.config" Transform="Web.$(Configuration).config" Destination="Web.config" /> | |
...other build tasks... | |
</Target> | |
- Command | |
MSBuild.exe PATH_TO_PROJ.csproj /p:DeployOnBuild=true /p:PublishProfile=PUBLISH_TARGET /p:Configuration=Release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment