在Windows Server 2016 Windows 10上构建.NET 4.0项目

时间:2018-11-21 07:49:24

标签: c# .net entity-framework

我们最近需要将构建服务器从Windows Server 2008升级到2016。因为08正在逐渐消失

众所周知,Windows Server 2016已安装.NET Framework 4.6和https://docs.microsoft.com/en-us/dotnet/framework/install/on-windows-10

  • 您的计算机上只能安装一个版本的.NET Framework 4.x。

  • 如果已经安装了更高版本的.NET Framework,则无法在其计算机上安装它。

情况是,我们有许多使用

的项目
  1. 带有EF 4.4.0.0的.NET 4.0
  2. .NET 4.5和EF 5.0.0.0

随着升级,一些类(例如System.ComponentModel.DataAnnotations.Schema.ColumnAttribute)已从EF迁移到.NET,从EF 4.4.0.0迁移到.NET 4.5。

因此,缺少.NET 4.0会导致:

  

错误CS0433:类型   存在'System.ComponentModel.DataAnnotations.Schema.ColumnAttribute'   在... \ workspace \ .... \ EntityFramework.dll和   ... \ Windows \ Microsoft.NET \ assembly \ GAC_MSIL \ System.ComponentModel.DataAnnotations \ v4.0_4.0.0.0__31bf3856ad364e35 \ System.ComponentModel.DataAnnotations.dll'

因为它尝试将.NET 4.5与EF 4.4.0.0一起使用。

我的问题是:我们没有资源要求质量检查小组对应用程序的各个方面进行全面测试,但是我们确实需要使用新的构建服务器。你们还有其他想法/想法值得尝试,以便它可以构建吗?

0 个答案:

没有答案
相关问题