1

我正在尝试在 CCNEt 中构建我的 VS 2008 项目并收到以下错误

 <message level="high"><![CDATA[".\Bin\mt.exe" -nologo -manifest "C:\MyProject\MyFile.exe.manifest" -outputresource:"C:\MyProject\bin\Release\MyFile.exe;#1"]]></message>

<message level="high"><![CDATA[The system cannot find the path specified.]]></message>

<error code="MSB3073" file="C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets" line="3397" column="13"><![CDATA[The command "".\Bin\mt.exe" -nologo -manifest "C:\MyProject\MyFile.exe.manifest" -outputresource:"C:\MyProject\bin\Release\MyFile.exe;#1" exited with code 3.]]></error>

这个项目在我的本地服务器上愉快地构建。

M.Net\Framework\v3.5 中也没有 Bin 文件夹....

任何帮助都会很棒

我还在项目上做了一个 msbuild 并得到了同样的错误。

4

3 回答 3

2

如果您收到上述消息

很可能是因为您尝试在未安装 Visual Studio 2008 或 .net Framework 3.5 SDK 的服务器上构建解决方案

并将文件从您的开发计算机复制到服务器以使工作正常

好吧,这是解决方案

复制

C:\程序文件\Microsoft SDK

文件夹(感谢@leppie)

到您的 CCNet / 构建服务器。

接下来,您需要更新注册表,告诉 .net 框架 SDK 在哪里

有关详细信息,请参见下面的屏幕截图

您必须创建 Windows 密钥,然后添加字符串 替代文本 http://www.freeimagehosting.net/uploads/791375b079.png

于 2010-03-24T08:08:43.277 回答
1

错误 3 是“系统找不到指定的路径”。

建议尝试 sysinternals procmon 以查看它在寻找什么(但未能找到)

于 2010-03-24T05:57:35.833 回答
1

您需要添加SDK\bin目录的路径。

例如:

c:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\
于 2010-03-24T06:08:04.270 回答