【发布时间】:2013-12-11 09:44:06
【问题描述】:
我正在为 x86 和 x64 平台使用单独的程序集开发项目。如何将此程序集添加到 Visual Studio 项目中,以便能够为 x86 和 x64 编译解决方案,而无需替换库?
【问题讨论】:
标签: .net visual-studio-2010 visual-studio cpu-architecture
我正在为 x86 和 x64 平台使用单独的程序集开发项目。如何将此程序集添加到 Visual Studio 项目中,以便能够为 x86 和 x64 编译解决方案,而无需替换库?
【问题讨论】:
标签: .net visual-studio-2010 visual-studio cpu-architecture
手动编辑项目文件并像这样更改引用
<Reference Include="YourAssembly" Condition="'$(Configuration)' == 'Release32'">
<HintPath>PathTo32BitAssembly\YourAssembly.dll</HintPath>
</Reference>
<Reference Include="YourAssembly" Condition="'$(Configuration)' == 'Release64'">
<HintPath>PathTo64BitAssembly\YourAssembly.dll</HintPath>
</Reference>
【讨论】: