GetFrameworkSdkPath 工作
更新:2007 年 11 月
擷取 Windows Software Development Kit (SDK) 的路徑。
工作參數
下表說明 GetFrameworkSdkPath 工作的參數。
參數 |
描述 |
---|---|
Path |
選擇性的 String 輸出參數。 包含 Windows SDK 的路徑。 |
備註
如果沒有安裝 Windows SDK,此工作便會在 Path 參數中傳回空值。
範例
下列範例使用 GetFrameworkSdkPath 工作,以便在 SdkPath 屬性中儲存 Windows SDK 的路徑。
<Project xmlns="https://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="GetPath">
<GetFrameworkSdkPath>
<Output
TaskParameter="Path"
PropertyName="SdkPath" />
</GetFrameworkSdkPath>
<Message Text="$(SdkPath)"/>
</Target>
</Project>