Can you call Slow Cheetah from the command line? I am looking to add a post build event to transform my config file for a variety of different environments.
Cheers Dee
Step 1) Create a build file Transform.msbuild
<Project DefaultTargets="TransformConfiguration">
<UsingTask TaskName="TransformXml"
AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.Tasks.dll"/>
<Target Name="TransformConfiguration">
<TransformXml Source="$(sourceConfig)"
Transform="$(valuesConfig)"
Destination="$(outputConfig)"/>
</Target>
</Project>
Step 2) Call MsBuild
msbuild Transform.msbuild /p:sourceConfig="app.config" /p:valuesConfig="App.Production.config" /p:outputConfig="AppName.config"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With