GetWinFXPath タスク
更新 : 2007 年 11 月
GetWinFXPath タスクは、現在の Microsoft .NET Framework ランタイムのディレクトリを返します。
タスク パラメータ
パラメータ |
説明 |
---|---|
WinFXPath |
省略可能な String 型の出力パラメータ。 .NET Framework ランタイムへの実際のパスを指定します。 |
WinFXNativePath |
必須の String 型のパラメータ。 ネイティブ ランタイムへのパスを指定します。 |
WinFXWowPath |
必須の String 型のパラメータ。 64 ビット システムの 32 ビット Windows on Windows モジュール内の Microsoft .NET Framework アセンブリへのパスを指定します。 |
解説
GetWinFXPath タスクが 64 ビット プロセッサで実行されている場合は、WinFXPath パラメータは WinFXWowPath パラメータに保存されているパスに設定されます。その以外の場合は、WinFXPath パラメータは WinFXNativePath パラメータに保存されているパスに設定されます。
使用例
GetWinFXPath タスクを使用して、 ランタイムへのネイティブ パスを検出する例を次に示します。
<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>
参照
概念
その他の技術情報
Windows Presentation Foundation MSBuild のリファレンス