I am trying to use the TransformXml task to convert a configuration in a single shot regardless of the assembly configuration selected in visual studio. I can accomplish this by editing the .csproj file, and here it is.
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.Tasks.dll"/>
<Target Name="TransformWebConfig" AfterTargets="AfterPublish">
<TransformXml Source="$(SolutionDir)WCFServices\Web.config"
Transform="$(SolutionDir)WCFServices\Web.Release.config"
Destination="$(OutDir)WebRelease.config"
StackTrace="true" />
</Target>
The problem is that while I am publishing, the converted configuration files are placed in the output directory, but this happens before the delete operation. I need the configurations to be converted after the delete operation.
Please inform?
source
share