ccnet 操作的确切顺序(取自此处):
1) Wait for the triggers to awaken.
2) Ask the source control system for a list of the modifications since the last build.
3) If any modifications were found or if the triggers said "force the build":
3.1) Generate a label for the build.
3.2) Run the prebuild tasks in the order specified, failing the build in case of error.
3.3) Get the source code from the source control system.
3.4) Run the build tasks in the order specified, failing the build in case of error.
3.5) If the repository should be labeled:
3.5.1) Let the source control system apply the label.
3.6) Run the publisher tasks.
4) Go to 1.
有没有办法在 ccnet 中执行步骤 3.1 之前运行一些 msbuild 任务。
问题陈述:
我正在使用“fileLabeller”在 ccnet 标签中显示文件的内容。如果文件存在,这很好用。但是假设文件不存在,那么我想调用一个 msbuild 任务来创建这个文件并设置一些虚拟文本。
我在预构建事件中调用了这个 msbuild 任务,但令我沮丧的是,这并没有成功,因为标签生成发生在预构建之前。
有没有办法在标签生成之前调用这个 msbuild 任务?