This project is read-only.

What is CCNet Assembly Info patcher?

It's a simple plugin for CruiseControl.NET. It can patch the AssemblyInfo.cs file, to set correnct version information, before building the project.

How to use CCNet Assembly Info patcher?

First, you must compile ccnet.assemblypatcher.plugin.sln. If you done, copy ccnet.assemblypatcher.plugin.dll to CCNet server directory (where ccnet.exe or ccservice.exe located).

Edit
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<cb:define root="c:\BUILD" />
  <tasks>
    <assemblypatcher>
      <filenames>
	  <name>$(root)\MyProject\Properties\AssemblyInfo.cs</name>
	  <name>$(root)\OtherProject\Properties\AssemblyInfo.cs</name>
	  </filenames>
      <patchtype>Version, FileVersion</patchtype>
      <patchtext/>
    </assemblypatcher> 
 </tasks>
</cruisecontrol>

  • You must define your new task (<assemblypatcher></assemblypatcher>).
  • Next add some filenames which contains version information (<filenames><name></name></filenames>).
  • Set the type of which information would You like to patch'd (<patchtype></patchtype>): Version and/or FileVersion.
  • If You have special version information, use the patchtext tag (<patchtext></patchtext>) (if the plugin find patchtext tag, replace the labeller version information)

Last edited May 22, 2013 at 10:23 PM by kevegabi, version 3

Comments

No comments yet.