CruiseControl.Net Plugin Vb.net error

I am trying to create my own Labeller plugin for Cruise Control.Net 1.4.3. I made a class based on another example in the example, but I keep getting the error

Class 'AssemblyVersionLabeller' must implement 'Function Generate (integrationResult As IIntegrationResult) As String' for interface 'ThoughtWorks.CruiseControl.Core.ILabeller'

Here is my code:

Import Exortech.NetReflector Import ThoughtWorks.CruiseControl.Core Import ThoughtWorks.CruiseControl.Core.Util

Namespace NetAssembly.CCNet.Label _ Public class AssemblyVersionLabeller Implements ILabeller Public Sub Run (result ByVal As IIntegrationResult) result.Label = Create (result) End Sub

    Public Function Generate(ByVal integrationResult As IIntegrationResult) As String
        Dim label As String = integrationResult.LastIntegration.Label

        Return label
    End Function

    <ReflectorProperty("prefix", Required:=False)> _
    Public Prefix As String = String.Empty

  End Class

      

Final namespace

What am I doing wrong? What did I miss?

Reference Information:

I am using VS2005. I can't use CrusieControl 1.4.4 RC2 (which has Label Assembly) because my original control plugin (SCM Anywhere) doesn't work with it.

0


a source to share


2 answers


I can't judge by just looking at your code, but if you want a sample of how to write labeling machines (although the code is in C #), you can take a look at BrekiLabeller (written by me).



0


a source


I believe you forgot the override rejection.



Public Overrides Function Generate

      

0


a source







All Articles