다음을 통해 공유


GetWinFXPath 작업

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

작업 매개 변수

Parameter

설명

WinFXPath

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

.NET Framework 런타임의 실제 경로를 지정합니다.

WinFXNativePath

필수 String 매개 변수입니다.

네이티브 .NET Framework 런타임의 경로를 지정합니다.

WinFXWowPath

필수 String 매개 변수입니다.

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

설명

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

예제

다음 예제에서는 GetWinFXPath 작업을 사용하여 .NET Framework 런타임의 기본 경로를 찾는 방법을 보여 줍니다.

<Project xmlns="https://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>

참고 항목

개념

WPF 응용 프로그램 만들기(WPF)

기타 리소스

WPF MSBuild 참조

WPF MSBuild 작업 참조

MSBuild 참조

MSBuild 작업 참조