다음을 통해 공유


GetWinFXPath 작업

GetWinFXPath 작업은 현재 .NET 런타임의 디렉터리를 반환합니다.

작업 매개 변수

매개 변수 설명
WinFXPath 선택적 String 출력 매개 변수입니다.

.NET 런타임의 실제 경로를 지정합니다.
WinFXNativePath 필수 String 매개 변수입니다.

네이티브 .NET 런타임의 경로를 지정합니다.
WinFXWowPath 필수 String 매개 변수입니다.

64비트 시스템의 32비트 Windows 모듈에서 .NET 어셈블리의 경로를 지정합니다.

설명

GetWinFXPath 작업이 64비트 프로세서에서 실행되는 경우 WinFXPath 매개 변수는 WinFXWowPath 매개 변수에 저장된 경로로 설정되고, 그렇지 않으면 WinFXPath 매개 변수는 WinFXNativePath 매개 변수에 저장된 경로로 설정됩니다.

예시

다음 예제에서는 GetWinFXPath 작업을 사용하여 .NET 런타임의 네이티브 경로를 검색하는 방법을 보여 줍니다.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <UsingTask
    TaskName="Microsoft.Build.Tasks.Windows.GetWinFXPath"
    AssemblyFile="C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\PresentationBuildTasks.dll" />
  <Target Name="GetWinFXPathTask">
    <GetWinFXPath
      WinFXNativePath="c:\WinFXNative"
      WinFXWowPath="c:\WinFXWowNative" />
  </Target>
  <Import Project="$(MSBuildBinPath)\Microsoft.WinFX.targets" />
</Project>

참고 항목