很长一段时间以来,我一直在努力解决这个错误。
我已经清理了路径,但我已经检查了路径和来源,它们是正确的。我检查了代理,它可以工作。我已经在命令行中运行了该命令,它工作正常,但 ccnet / msbuild 记录了这些错误。
<message level="high"><![CDATA["C:\Develop\Web\.nuget\NuGet.exe" install "C:\Develop\Web\MyCompany.MyProject\packages.config" -nocache -source "https://www.nuget.org/api/v2/;http://ec2-54-201-44-121.us-west-2.compute.amazonaws.com/nuget/" -NonInteractive -solutionDir "C:\Develop\Web\ "]]></message>
<error file="WARNING" line="0" column="0" timeStamp="02/27/2014 11:40:52"><![CDATA[(403) Forbidden.]]></error>
<error file="WARNING" line="0" column="0" timeStamp="02/27/2014 11:40:52"><![CDATA[(403) Forbidden.]]></error>
<error file="WARNING" line="0" column="0" timeStamp="02/27/2014 11:40:52"><![CDATA[(403) Forbidden.]]></error>
<error file="WARNING" line="0" column="0" timeStamp="02/27/2014 11:40:52"><![CDATA[(403) Forbidden.]]></error>
<message level="high"><![CDATA[Installing 'MyProject.MyCompany.Common 1.0.0'.]]></message>
<message level="high"><![CDATA[Installing 'MyProject.EnterpriseLibrary.4.1 1.0.1'.]]></message>
<message level="high"><![CDATA[Installing 'MyProject.Web.Cms.Libraries 1.0.0'.]]></message>
<message level="high"><![CDATA[Installing 'MyProject.MyCompany.Interactive.DataAccess 1.0.0'.]]></message>
<message level="high"><![CDATA[Successfully installed 'MyProject.MyCompany.Interactive.DataAccess 1.0.0'.]]></message>
<message level="high"><![CDATA[Successfully installed 'MyProject.MyCompany.Common 1.0.0'.]]></message>
<message level="high"><![CDATA[Successfully installed 'MyProject.EnterpriseLibrary.4.1 1.0.1'.]]></message>
<message level="high"><![CDATA[Successfully installed 'MyProject.Web.Cms.Libraries 1.0.0'.]]></message>
<error code="MSB3073" file="C:\Develop\Web\.nuget\NuGet.targets" line="88" column="9" timeStamp="02/27/2014 11:41:03"><![CDATA[The command ""C:\Develop\Web\.nuget\NuGet.exe" install "C:\Develop\Web\MyCompany.MyProject\packages.config" -nocache -source "https://www.nuget.org/api/v2/;http://ec2-54-201-44-121.us-west-2.compute.amazonaws.com/nuget/" -NonInteractive -solutionDir "C:\Develop\Web\ "" exited with code -1.]]></error>
</project>