andrew4582

App config transform xml

Oct 15th, 2014
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.74 KB | None | 0 0
  1. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  2.   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  3.       Other similar extension points exist, see Microsoft.Common.targets.
  4.  <Target Name="BeforeBuild">
  5.  </Target>
  6.  <Target Name="AfterBuild">
  7.  </Target>
  8.  -->
  9.   <UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.Tasks.dll" />
  10.   <Target Name="CustomTarget" BeforeTargets="BeforeBuild">
  11.     <Message Text="Transforming: App.$(Configuration).config" Importance="high" />
  12.     <TransformXml Source="App.config" Transform="App.$(Configuration).config" Destination="App.config" />
  13.   </Target>
Advertisement
Add Comment
Please, Sign In to add comment