项目中同一个dll的x86和x64同时引用

<ItemGroup Condition=" '$(Platform)' == 'x86' ">
    <Reference Include="System.Data.SQLite, Version=1.0.84.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=x86">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\CommonDll\PhySec(x86)\System.Data.SQLite.dll</HintPath>
    </Reference>
</ItemGroup>
 <ItemGroup Condition=" '$(Platform)' == 'x64' ">
    <Reference Include="System.Data.SQLite, Version=1.0.84.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=AMD64">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\CommonDll\PhySec(x64)\System.Data.SQLite.dll</HintPath>
    </Reference>
</ItemGroup>

系统会自动根据平台选择合适的dll

展开阅读全文

没有更多推荐了,返回首页