加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – Tfs构建失败

发布时间:2020-12-15 07:42:17 所属栏目:百科 来源:网络整理
导读:我在TFS构建控制器中配置了项目,但我在队列新构建后面临构建失败.在日志中,我检查了所有文件时发现错误的引用. 我如何调试和创建精美的tfs构建zip. 建立失败. "C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcApp.sln" (default target)
我在TFS构建控制器中配置了项目,但我在队列新构建后面临构建失败.在日志中,我检查了所有文件时发现错误的引用.

我如何调试和创建精美的tfs构建zip.

建立失败.

"C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcApp.sln" (default target) (1) ->
   "C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj" (default target) (2) ->
   (ResolveAssemblyReferences target) -> 
     C:WindowsMicrosoft.NETFramework64v4.0.30319Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "EntityFramework". Check to make sure the assembly exists on disk. If this reference is required by your code,you may get compilation errors. [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     C:WindowsMicrosoft.NETFramework64v4.0.30319Microsoft.Common.targets(1578,5): warning MSB3245: 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,5): warning MSB3245: 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,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "DotNetOpenAuth.AspNet,Version=4.0.0.0,Culture=neutral,PublicKeyToken=2780ccd10d57b246,processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "DotNetOpenAuth.Core,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "DotNetOpenAuth.OAuth.Consumer,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "DotNetOpenAuth.OAuth,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "DotNetOpenAuth.OpenId,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "DotNetOpenAuth.OpenId.RelyingParty,5): warning MSB3245: 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,5): warning MSB3245: 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:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]


   "C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcApp.sln" (default target) (1) ->
   "C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj" (default target) (2) ->
   (CoreCompile target) -> 
     App_StartBundleConfig.cs(2,18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     ControllersAccountController.cs(8,7): error CS0246: The type or namespace name 'DotNetOpenAuth' could not be found (are you missing a using directive or an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     FiltersInitializeSimpleMembershipAttribute.cs(3,26): error CS0234: The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     Global.asax.cs(7,18): error CS0234: The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     ModelsAccountModels.cs(4,45): error CS0234: The type or namespace name 'Schema' does not exist in the namespace 'System.ComponentModel.DataAnnotations' (are you missing an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     ModelsAccountModels.cs(12,33): error CS0246: The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     App_StartBundleConfig.cs(9,44): error CS0246: The type or namespace name 'BundleCollection' could not be found (are you missing a using directive or an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     ModelsAccountModels.cs(19,16): error CS0246: The type or namespace name 'DbSet' could not be found (are you missing a using directive or an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     ModelsAccountModels.cs(26,10): error CS0246: The type or namespace name 'DatabaseGeneratedAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     ModelsAccountModels.cs(26,10): error CS0246: The type or namespace name 'DatabaseGeneratedAttributeAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     ModelsAccountModels.cs(22,6): error CS0246: The type or namespace name 'Table' could not be found (are you missing a using directive or an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]
     ModelsAccountModels.cs(22,6): error CS0246: The type or namespace name 'TableAttribute' could not be found (are you missing a using directive or an assembly reference?) [C:Builds1SourceCodeMvcAppSourcesMainLineMvc AppMvcAppMvcAppMvcApp.csproj]

11 Warning(s)
12 Error(s)

时间流逝00:00:06.40

解决方法

你需要将所有这些dll放在你的构建机器上.简单的方法是使用NuGet来管理你的包并配置它来拉下缺少的dll.或者您可以手动将它们添加到构建计算机.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读