-
Notifications
You must be signed in to change notification settings - Fork 1
MSBuild
Ben Phegan edited this page Jul 17, 2017
·
1 revision
You can include RenderConfig into your build via an !MSBuild task include, ensuring that wherever and however your software is built, the configuration is built at the same time.
In order to do this, you must:
- Create an !MSBuild build script to run the task from. This will be left as an exercise for the reader, as Google will do a better job of explaining this than I will.
- Add a task definition including the !MSBuild.RenderConfig.dll as a valid task in your build script:
<UsingTask TaskName="RenderConfig.MSBuild.RenderConfig" AssemblyFile="MSBuild.RenderConfig.dll"/>
- Within a defined task, add a call to process a particular configuration (or configurations). You can use all the same options as you can on the command line, please see the Configuration Settings page for attribute names.
<RenderConfig ConfigFile="test.xml.xml" Configuration="xmlupdate" OutputDirectory=".\testing" />