为什么我的Visual Studio Online构建会一直失败?

时间:2015-03-03 20:47:28

标签: c# visual-studio tfsbuild

出于某种原因,它一直失败,因为它无法找到一些装配,我不明白它为什么找不到它们。它是一个ASP.NET MVC应用程序。

在构建定义中,我的源设置被设置为src /文件夹,其中包含我的解决方案中的项目和packages文件夹。

构建过程模板是TfvcTemplate.12.xaml,我非常确定它是默认值之一。
干净的工作空间:真实的 标签来源:真实 项目:我的应用程序的解决方案文件
干净的构建:真实的 输出位置:SingleFolder

我的错误如下

Controllers\CompanyController.cs (11): The type or namespace name 'OfficeOpenXml' could not be found (are you missing a using directive or an assembly reference?)
Global.asax.cs (7): The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Services\ExcelExportService.cs (8): The type or namespace name 'OfficeOpenXml' could not be found (are you missing a using directive or an assembly reference?)
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "Antlr3.Runtime". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "EPPlus". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "Newtonsoft.Json". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "System.Web.Optimization". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Could not resolve this reference. Could not locate the assembly "WebGrease". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1697): Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.

我更深入地查看了日志,我可以看到它正在尝试找到它们,但它得到的只是"认为是blablablabla,但它并不存在。"

为什么它找不到我的nuget包?

0 个答案:

没有答案
相关问题