项目中同一个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

posted @ 2014-10-15 10:09  ChuckLu  阅读(2334)  评论(0编辑  收藏  举报