1

我有一个试图通过 teamcity 部署的 azure web worker。在构建服务器上部署其他 web worker 项目没有问题。该项目在 Visual Studio 中部署良好。当我尝试在团队城市中部署项目时,我收到错误消息:

[14:32:25][Web.UI.Azure\Web.UI.Azure.ccproj.teamcity] _CleanGetCurrentAndPriorFileWrites
[14:32:25]  [_CleanGetCurrentAndPriorFileWrites] FindUnderPath
[14:32:25]    [FindUnderPath] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4017, 5): error MSB3541: Files has invalid value "csx\Release\**\__entrypoint.txt". Illegal characters in path.
[14:32:25][Web.UI.Azure\Web.UI.Azure.ccproj.teamcity] Project Web.UI.Azure\Web.UI.Azure.ccproj.teamcity failed.

我试图确定项目之间的差异,但看不到相关差异。

什么可能导致构建过程以这种方式失败?

4

1 回答 1

1

故障归结为视觉工作室项目中的这一行:

<Content Include="**\*.html" />

其中一个文件路径长度为 165 个字符,缩短文件路径解决了问题。它没有解释为什么部署在 Visual Studio 而不是在 Team City 中有效,但至少它现在在任何地方都有效。

于 2013-05-09T12:08:31.627 回答