我正在尝试从git获取一个站点来构建,然后使用CruiseControl.NET发布。看了几个在线指南,并且能够获得我认为应该有用的东西,但每次构建它都成功但返回消息Skipping unpublishable project
并且不会在任何地方发布。这是我目前在ccnet.config文件中的内容。
<project name="Site">
<workingDirectory>C:\Build\Site\Build</workingDirectory>
<artifactDirectory>C:\Build\Site\Publish</artifactDirectory>
<tasks Name="Clean">
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>C:\Build\Site\Build</workingDirectory>
<projectFile>Site.csproj</projectFile>
<buildArgs>
/t:Publish
</buildArgs>
<timeout>900</timeout>
</msbuild>
</tasks>
<sourceControlProvider type="git">
<executable>C:\Program Files (x86)\Git\cmd\git.exe</executable>
<repository>gitreporsitory</repository>
<workingDirectory>c:\build\site\build</workingDirectory>
</sourceControlProvider>