我正在使用 cc.net 和 MS build 来构建我的客户端和 Win 服务项目。
这就是服务的构建方式,其中:
是否可以将其自动安装为 Windows 服务?
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>C:\CCBuild\Git\Dev\Services\ServiceSetup</workingDirectory>
<projectFile>ServiceSetup.wixproj</projectFile>
<buildArgs>/p:Configuration=Release /p:Platform=x86 /v:diag</buildArgs>
<targets>Clean;Build</targets>
<timeout>480</timeout>
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
和客户端:
是否只有安装并成功启动上述服务才能运行集成测试?
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>C:\CCBuild\Git\Dev\LocalClient\ClientSetup</workingDirectory>
<projectFile>ClientSetup.wixproj</projectFile>
<buildArgs>/p:Configuration=Release /p:Platform=x86 /v:diag</buildArgs>
<targets>Clean;Build</targets>
<timeout>480</timeout>
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>
</msbuild>
<exec>
<executable>C:\Program Files\Gallio\bin\Gallio.Echo.exe</executable>
<buildArgs>/rnf:report2\test-report /rt:Xml-Inline /v:Quiet C:\CCBuild\Git\Dev\LocalClient\Client.IntegrationTests\bin\x86\Debug\Client.IntegrationTests.dll</buildArgs>
<description>Client Tests</description>
</exec>
请用示例代码解释,因为 cc.net 和 MsBuild 对我来说是新的。
谢谢你