Benefits of a plugin :
- you can easily link to your companies software libs
- when a new version of CCNet comes out, you do not have to change the code again
- Nobody else can extend/improve it
- if there is a breaking change in CCNet, you will have to make the change to make it work again
Create a class library, and name the project FilePublisher. You will have the following :
Rename Class1 to FilePublisher, and past in the following code (it's the same as in the previous post:
Next include references to the following dll's, each can be found in the server folder of the installation folder of CCNet.
In order to let CCNet see this assembly, it must have follow a specific naming : 'ccnet.*.plugin.dll' (where the star represents the name you choose). So our assembly name will be ccnet.FilePublisher.plugin.
Compile and copy the assembly into the folder containing the CruiseControl.NET assemblies. Now you can use this publisher in the same way as in the previous post, by modifying ccnet.config like so :
That was easy ;-)