从到位桶部署到AppHarbor当我得到生成错误。 它涉及到不能够解决的依赖应该来自的NuGet的项目之一。 一切都建立并运行我的机器上的罚款。 知识 - 我非常好,的NuGet和经验丰富的开发精通。 我可能是洗牌的文件夹各地本地和重建到位桶回购导致此。 我检查到位桶源,似乎一切都在那里比本地。
我的解决方案的结构与此类似:
\repo\app.sln
\repo\model\model.csproj
\repo\web\web.csproj
模型是核心/模型类库项目。 网是一个Web应用程序(webapi2 + HTML),其呈现模型的依赖关系。 双方建立正确和我的本地框运行正常,但我最近有一些问题,所以到位桶对我绕盘移动的东西,创造了一个新的存储库。 这打破了只有当它被运达Appharbor构建。
NuGet包还原为这两个项目打开。
这里的日志从AppHarbor构建过程的顶部:
Build started 2/7/2014 5:19:58 AM.
1>Project "D:\temp\g0q2xqui.baf\input\app.sln" on node 1 (default targets).
1>ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
1>Project "D:\temp\g0q2xqui.baf\input\app.sln" (1) is building "D:\temp\g0q2xqui.baf\input\web\web.csproj" (2) on node 1 (default targets).
2>RestorePackages:
"D:\temp\g0q2xqui.baf\input\.nuget\NuGet.exe" install "packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "D:\temp\g0q2xqui.baf\input\ "
1>Project "D:\temp\g0q2xqui.baf\input\app.sln" (1) is building "D:\temp\g0q2xqui.baf\input\model\model.csproj" (4) on node 2 (default targets).
4>RestorePackages:
"D:\temp\g0q2xqui.baf\input\.nuget\NuGet.exe" install "packages.config" -source "" -NonInteractive -RequireConsent -solutionDir "D:\temp\g0q2xqui.baf\input\ "
2>RestorePackages:
Restoring NuGet packages...
To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
All packages listed in packages.config are already installed.
4>RestorePackages:
Restoring NuGet packages...
To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
All packages listed in packages.config are already installed.
ResolveAssemblyReferences:
Primary reference "MongoDB.Bson".
4>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "MongoDB.Bson". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\temp\g0q2xqui.baf\input\model\model.csproj]
For SearchPath "{HintPathFromItem}".
正如你所看到的“模型”(#4)项目是无法解决的MongoRepository NuGet包引用。 这瀑布和休息的构建。
下面是该模型凸出的packages.config:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="mongocsharpdriver" version="1.8.3" targetFramework="net45" />
<package id="MongoRepository" version="1.6.3" targetFramework="net45" />
</packages>