我已经安装了nuget版本System.Runtime.InteropServices.RuntimeInformation
的nuget软件包4.0.0
。
dll的程序集版本为4.0.2
。
绑定重定向似乎是正确的:
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
但是在.csproj
中,版本属性为4.0.0.0
。应该不是4.0.2.0
吗?
<Reference Include="System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\System.Runtime.InteropServices.RuntimeInformation.4.0.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>