C:\Program Files (x86)\Reference Assemblies\Microsoft\MSBuild\v14.0 中的不同 MSBuild 版本

发布于 2025-01-10 01:41:35 字数 894 浏览 0 评论 0原文

我们有两台开发人员 PC(除其他外)安装了最新版本的 Visual Studio 2019 (10.11.16)。在两台 PC 上,目录 C:\Program Files (x86)\Reference Assemblies\Microsoft\MSBuild\v14.0 包含以下 DLL:

Microsoft.Build.Conversion.Core.dll
Microsoft.Build.dll
Microsoft.Build.Engine.dll
Microsoft.Build.Framework.dll
Microsoft.Build.Tasks.Core.dll
Microsoft.Build.Utilities.Core.dll

但是,日期和版本不同:

  • PC A 的版本为 2015- 07-07和14.0.23107.0,
  • PC B有2016-06-20和14.0.25420.1。

这会在我们的部署过程中导致问题,因为

  1. 我们使用引用 Microsoft.Build.Framework.dll 的库(MS ReportViewer Control),因此,此 DLL 被复制到输出目录,并且
  2. 当使用以下命令创建构建时,我们的部署工具会发出抱怨: PC B 被用 PC A 创建的(较新)版本替换,因为其中一个 DLL 实际上较旧。

现在,我可以手动将 DLL 从 PC B 复制到 PC A,但这看起来……很脏。毕竟,DLL 可能是作为某些开发工具的一部分安装的,我宁愿升级该开发工具。但是,如上所述,两台电脑安装的 Visual Studio 2019 版本完全相同。

有没有一些简单的方法可以找出 PC A 和 PC B 上的参考组件不同的原因(除了从头开始重建一个,这绝对不值得付出努力)?

We have two developer PCs with (among other stuff) the most current version of Visual Studio 2019 (16.11.10) installed. On both PCs, the directory C:\Program Files (x86)\Reference Assemblies\Microsoft\MSBuild\v14.0 contains the following DLLs:

Microsoft.Build.Conversion.Core.dll
Microsoft.Build.dll
Microsoft.Build.Engine.dll
Microsoft.Build.Framework.dll
Microsoft.Build.Tasks.Core.dll
Microsoft.Build.Utilities.Core.dll

However, the dates and versions differ:

  • PC A has 2015-07-07 and 14.0.23107.0,
  • PC B has 2016-06-20 and 14.0.25420.1.

This causes problems in our deployment process, because

  1. we use a library (MS ReportViewer Control) that references Microsoft.Build.Framework.dll, and, thus, this DLL gets copied to the output directory and
  2. our deployment tool complains when a build created with PC B is replaced by a (newer) build created with PC A, because one of the DLLs is actually older.

Now, I could just manually copy the DLLs from PC B to PC A, but this seems... dirty. After all, the DLLs were probably installed as part of some development tool, and I'd rather upgrade that development tool. However, as stated above, both PCs have exactly the same version of Visual Studio 2019 installed.

Is there some easy way to find out why the Reference Assemblies on PC A an PC B differ (apart for rebuilding one from scratch, which is definitely not worth the effort)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文