我在TFS构建控制器中配置了项目,但我在队列新构建后面临构建失败.在日志中,我检查了所有文件时发现错误的引用.

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

建立失败.

"C:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp.sln" (default target) (1) ->
   "C:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj" (default target) (2) ->
   (ResolveAssemblyReferences target) -> 
     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]


   "C:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp.sln" (default target) (1) ->
   "C:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj" (default target) (2) ->
   (CoreCompile target) -> 
     App_Start\BundleConfig.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Controllers\AccountController.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Filters\InitializeSimpleMembershipAttribute.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Models\AccountModels.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Models\AccountModels.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     App_Start\BundleConfig.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Models\AccountModels.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Models\AccountModels.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Models\AccountModels.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Models\AccountModels.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     Models\AccountModels.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:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]

11 Warning(s)
12 Error(s)

时间流逝00:00:06.40

解决方法

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

c# – Tfs构建失败的更多相关文章

  1. 使用AFNetworking在Swift中请求数据

    首先用桥接或pods将AFNetworking导入项目,在这不再赘述,然后创建一个单例NetWorkTools.swift继承:AFHTTPSessionManager请求数据调用的地方

  2. winforms – 有更简单的方法来合并Windows Forms .Designer文件吗?

    我们刚刚从TFS切换到Mercurial为我们的小团队.3人工作的主要项目是C#中的WindowsForms应用程序.每次使用设计器时,即使进行简单的更改,它也会大量重新排列并更改为.Designer文件.如果两个人在这个文件上工作,即使做出简单的改变,合并也是绝对的噩梦.有没有办法解决这个问题?在TFS中,我们关闭并发编辑,所以我们没有这个问题.这些文件的合并总是很痛苦的…

  3. tfs – 使用Team Foundation Services的Microsoft Access 2007/2012源代码控制(2012)

    同时我的一位客户要我维护一个内部开发的MSAccess应用程序:(.虽然我们可能逐渐将应用程序迁移到.Net,但第一步将是调试和维护访问应用程序…所以为了最大限度地减少问题,我决定将其放在源代码管理下,为什么不能使用ALM.问题是Access文件(mdb:()是二进制文件.没有明确的解释可以让它与TeamFoundationServices合作.我该如何做到这一点?我有解决方案>安装TeamExplorer2012该软件由Microsoft提供,以访问TFS2012,可以免费使用您的TFS许可证:http

  4. .net – 如何正确检入DLL /程序集到TFS / Visual Studio Team Services(是VSO)

    在某些情况下,有一个名为“libs”或“libraries”的文件夹是很有用的,它包含项目编译和运行所需的所有程序集.所以你可以登记这个文件夹.在每个项目中,您需要引用此处包含的dll.包含“bin”文件夹不是正确的方法,因为如果开发人员在VisualStudio中执行“清理解决方案”,则会清除此文件夹.

  5. centos6.9全新安装tfs(淘宝小文件系统)全过程

    安装全过程大概需要1小时左右

  6. windows-server-2008-r2 – 简单的iis loadballancer背后的多个TFS“主机”

    我有一个简单的设置,用于为我的网站分配负载(目前)使用3个IIS服务器和应用程序请求路由.我想知道,TFS是否能够很好地安装在2个后端上,或者可能会导致一些问题,例如.从视觉工作室提交变更集?

  7. 在CentOS7.3上编译gcc4.1.2 gcc4.1.2、淘宝TFS

    为什么还要gcc4.1.2?

  8. php – 多个spl_autoload_register问题

    我正在开发自定义框架.当我试图动态调用我的类时,我遇到了一个问题.这是我的文件的视觉效果:所以我决定为每个文件夹创建一个不同的函数:不过我有这样的消息:警告:require:无法打开流,cours它不是好文件夹.但我不知道如何解决这个问题.有没有一种优化我的类调用的好方法?经过几次测试,我找到了适合我案例的解决方案:

  9. Windows – 如何在Team Foundation Server(TFS)中重命名项目

    无法在TFSv1中重命名Team项目您可以使用以下解决方法:>使用所需名称创建新项目>将工作项从旧项目复制到新项目.>将所有源控制文件夹从旧项目文件夹下移动到新项目文件夹Sharepoint门户网站文档无法批量移动,因此您可以手动执行此操作>移动源代码将保留文件历史记录,工作项也将具有部分历史记录,但总的来说,我会说解决方法不值得劳动.无论如何,在开始时选择正确的名称可以胜过任何变通方法.Source

  10. 无法加载文件或程序集“Microsoft.WindowsAzure.ServiceRuntime,Version = 2.0.0.0

    我们正在使用AzureSDK1.8,它在本地工作正常.我们正在使用TFS托管的构建控制器来部署在天蓝色上.它工作正常,但突然之间,我们得到这个错误,虽然我们没有azuresdkdll版本更改,但在线我们得到这个错误.这是因为TFS构建控制器使用新的sdk升级?奇怪的是,这个构建每次都显示成功.在TFS构建服务中,我发现这个奇怪的东西,为什么它引用到v2.0sdk.如果一切都失败,并且正确的DLL部署在bin中,请尝试在web.config中添加装配绑定重定向:根据需要更改绑定版本号.

随机推荐

  1. c# – (wpf)Application.Current.Resources vs FindResource

    所以,我正在使用C#中的WPF创建一个GUI.它看起来像这样:它现在还没有完成.这两行是我尝试制作一种数据表,它们在XAML中是硬编码的.现在,我正在C#中实现添加新的水果按钮功能.我在XAML中有以下样式来控制行的背景图像应该是什么样子:因此,在代码中,我为每列col0,col1和col2创建一个图像,如果我使用以下代码,它添加了一个如下所示的新行:如你所见,它不太正确……为什么一个似乎忽略了一些属性而另一个没有?

  2. c# – 绑定DataGridTemplateColumn

    似乎我已经打了个墙,试图在DataGrid上使用DataTemplates.我想要做的是使用一个模板来显示每个单元格的两行文本.但是似乎无法以任何方式绑定列.以下代码希望显示我想做的事情.注意每个列的绑定:模板列没有这样的东西,因此,这个xaml不可能工作.我注定要将整个DataTemplate复制到每个列,只是对每个副本都有不同的约束?解决方法我不完全确定你想要做什么,但如果您需要获取整行的DataContext,可以使用RelativeSource绑定来移动视觉树.像这样:

  3. c# – 学习设计模式的资源

    最近我来到了这个设计模式的概念,并对此感到非常热情.你能建议一些帮助我深入设计模式的资源吗?

  4. c# – 是否有支持嵌入HTML页面的跨操作系统GUI框架?

    我想开发一个桌面应用程序来使用跨系统,是否有一个GUI框架,允许我为所有3个平台编写一次代码,并具有完全可脚本化的嵌入式Web组件?我需要它有一个API来在应用程序和网页之间进行交流.我知道C#,JavaScript和一些python.解决方法Qt有这样的事情QWebView.

  5. c# – 通过字符串在对象图中查找属性

    我试图使用任意字符串访问嵌套类结构的各个部分.给出以下(设计的)类:我想要从Person对象的一个实例的“PersonsAddress.HousePhone.Number”获取对象.目前我正在使用反思来做一些简单的递归查找,但是我希望有一些忍者有更好的想法.作为参考,这里是我开发的(crappy)方法:解决方法您可以简单地使用标准的.NETDataBinder.EvalMethod,像这样:

  6. c# – 文件下载后更新页面

    FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7&displaylang=en&pf=true它呈现该页面,然后使用以下元刷新标签来实际向用户提供要下载的文件:你可能需要在你的应用程序中做类似的事情.但是,如果您真的有兴趣在文件完全下载后执行某些操作,那么您的运气不佳,因为没有任何事件可以与浏览器进行通信.执行此操作的唯一方法是上传附件时使用的AJAXupload.

  7. c# – 如何在每个机器应用程序中实现单个实例?

    我必须限制我的.net4WPF应用程序,以便每台机器只能运行一次.请注意,我说每个机器,而不是每个会话.我使用一个简单的互斥体实现单实例应用程序,直到现在,但不幸的是,这样一个互斥是每个会话.有没有办法创建机器互连,还是有其他解决方案来实现每个机器应用程序的单个实例?

  8. c# – WCF和多个主机头

    我的雇主网站有多个主机名,都是同一个服务器,我们只是显示不同的皮肤来进行品牌宣传.不幸的是,在这种情况下,WCF似乎不能很好地工作.我试过overridingthedefaulthostwithacustomhostfactory.这不是一个可以接受的解决方案,因为它需要从所有主机工作,而不仅仅是1.我也看过thisblogpost,但是我无法让它工作,或者不是为了解决我的问题.我得到的错误是“这

  9. c# – ASP.NET MVC模型绑定与表单元素名称中的虚线

    我一直在搜索互联网,试图找到一种方式来容纳我的表单元素的破折号到ASP.NET的控制器在MVC2,3或甚至4中的默认模型绑定行为.作为一名前端开发人员,我更喜欢在我的CSS中使用camelCase或下划线进行破折号.在我的标记中,我想要做的是这样的:在控制器中,我会传入一个C#对象,看起来像这样:有没有办法通过一些正则表达式或其他行为来扩展Controller类来适应这种情况?我讨厌这样的事实,我必须这样做:甚至这个:思考?

  10. c# – 用户界面设计工具

    我正在寻找一个用户界面设计工具来显示文档中可能的GUI.我不能生成代码.我知道MicrosoftVisio提供了一个功能.但有什么办法吗?您使用哪种软件可视化GUI?

返回
顶部