TFS 2018 Build与Core 2.1和Microsoft.Windows.Compatibility 2.0.1失败 [英] TFS 2018 Build Fails with Core 2.1 and Microsoft.Windows.Compatibility 2.0.1

查看:75
本文介绍了TFS 2018 Build与Core 2.1和Microsoft.Windows.Compatibility 2.0.1失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在正式版TFS 2018上构建失败-新的.Net Core 2.1 MVC项目. 添加此软件包PM:Install-Package System.DirectoryServices -Version 4.5.0 使用TFS 2018 Build Agent: 构建失败.

On prem TFS 2018 Build fails - New .Net Core 2.1 MVC project. add this package PM: Install-Package System.DirectoryServices -Version 4.5.0 Use TFS 2018 Build Agent: Build Fails.

推荐答案

经过大量研究,cproj文件被隐藏,您只能通过Visual Studio中的菜单对其进行编辑.无论如何,在添加System.DirectoryServices程序包后,此文件在TFS 2018中没有得到更新.因此,TFS 2018 Build服务器所做的是正确的-查看了cproj文件并发现程序集丢失.我去了服务器并编辑了cproj文件以添加程序集并解决了问题.

After much research, the cproj file is hidden and you can only edit it via the menu in Visual Studio. Anyway, this file did not get Updated in TFS 2018 after adding the System.DirectoryServices package. Therefore, what the TFS 2018 Build server did was correct - looked at the cproj file and found assembly missing. I went to the Server and edited the cproj file to add the assembly and solved the problem.

这篇关于TFS 2018 Build与Core 2.1和Microsoft.Windows.Compatibility 2.0.1失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆