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

时间:2014-10-15 11:55:21   收藏:0   阅读:290
<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

原文:http://www.cnblogs.com/chucklu/p/4025740.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!