■ 프로젝트에서 x86/x64별로 나누어진 어셈블리를 참조하는 방법을 보여준다.
▶ 변경전 프로젝트 파일 (CSPROJ)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<?xml version="1.0" encoding="utf-8"?> <Project ...> ....[생략].... <PropertyGroup> ....[생략].... </PropertyGroup> ....[생략].... <ItemGroup> <Reference Include="Oracle.DataAccess"> <HintPath>x64\Oracle.DataAccess.dll</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> </ItemGroup> ....[생략].... </Project> |
▶ 변경후 프로젝트 파일 (CSPROJ)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<?xml version="1.0" encoding="utf-8"?> <Project ...> ....[생략].... <PropertyGroup> ....[생략].... </PropertyGroup> ....[생략].... <ItemGroup Condition="'$(Platform)' == 'x86'"> <Reference Include="Oracle.DataAccess"> <SpecificVersion>False</SpecificVersion> <HintPath>x86\Oracle.DataAccess.dll</HintPath> </Reference> </ItemGroup> <ItemGroup Condition="'$(Platform)' == 'x64'"> <Reference Include="Oracle.DataAccess"> <SpecificVersion>False</SpecificVersion> <HintPath>x64\Oracle.DataAccess.dll</HintPath> </Reference> </ItemGroup> <ItemGroup> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Xml" /> </ItemGroup> ....[생략].... </Project> |