■ 프로젝트에서 x86/x64별로 나누어진 어셈블리 참조하기

------------------------------------------------------------------------------------------------------------------------

변경전 프로젝트 파일

변경후 프로젝트 파일

 

<?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>

 

 

<?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>

 

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG