使用msbuild.exe 在另一台电脑上 编译项目(已安装 NET 4.6.2, 4.7.2),出现如下错误:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3268: The primary reference "GrapeCity.ActiveReports, Version=17.2.2.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.6.2". To resolve this problem, either remove the reference "GrapeCity.ActiveReports, Version=17.2.2.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
提示 System.Runtime.InteropServices.RuntimeInformation.dll 版本不对,
vbproj 里的 目标版本是4.6.2:
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
|