Last active
September 21, 2019 16:18
-
-
Save devops-school/214edff7a23293b35411d96dd4beeb14 to your computer and use it in GitHub Desktop.
teamcity
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
<Target Name="BeforeBuild"> | |
<Copy SourceFiles="Web.config" DestinationFiles="Web.temp.config" | |
OverwriteReadOnlyFiles="True" /> | |
<TransformXml Source="Web.temp.config" Transform="Web.$(Configuration).config" | |
Destination="Web.config" /> | |
</Target> | |
<Target Name="AfterBuild"> | |
<Copy SourceFiles="Web.temp.config" DestinationFiles="Web.config" | |
OverwriteReadOnlyFiles="True" /> | |
<Delete Files="Web.temp.config" /> | |
</Target> |
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
<!-- the step to copy the config file first avoids a 'File is being used by another process' error --> | |
<Target Name="BeforeBuild"> | |
<Copy SourceFiles="Web.config" DestinationFiles="Web.temp.config" OverwriteReadOnlyFiles="True" /> | |
<TransformXml Source="Web.temp.config" Transform="Web.$(Configuration).config" Destination="Web.config" /> | |
</Target> | |
<Target Name="AfterBuild"> | |
<Copy SourceFiles="Web.temp.config" DestinationFiles="Web.config" OverwriteReadOnlyFiles="True" /> | |
<Delete Files="Web.temp.config" /> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding HTML code into wordpress as a code is not working