diff options
Diffstat (limited to 'src/mscorlib/Tools/Versioning/GenerateVersionInfo.targets')
-rw-r--r-- | src/mscorlib/Tools/Versioning/GenerateVersionInfo.targets | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mscorlib/Tools/Versioning/GenerateVersionInfo.targets b/src/mscorlib/Tools/Versioning/GenerateVersionInfo.targets index 2a804b403c..00f5282c7c 100644 --- a/src/mscorlib/Tools/Versioning/GenerateVersionInfo.targets +++ b/src/mscorlib/Tools/Versioning/GenerateVersionInfo.targets @@ -68,6 +68,7 @@ </PropertyGroup> <Target Name="GenerateVersionHeader" + Condition="'$(GenerateNativeVersionInfo)'=='true'" Inputs="$(MSBuildProjectFile)" Outputs="$(NativeVersionHeaderFile)"> @@ -96,12 +97,18 @@ </Target> - <PropertyGroup> + <PropertyGroup Condition="'$(GenerateNativeVersionInfo)'=='true'"> <WindowsSdkDir Condition="'$(WindowsSdkDir)'==''">$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.1@InstallationFolder)</WindowsSdkDir> <RCPath Condition="'$(RCPath)' == ''">$(WindowsSdkDir)bin\x86\rc.exe</RCPath> </PropertyGroup> - <Target Name="NativeResourceCompile" DependsOnTargets="GenerateVersionHeader" Inputs="$(MsBuildThisFileDirectory)NativeVersion.rc" Outputs="$(Win32Resource)"> - <Exec Command=""$(RCPath)" /nologo /x /i "$(IntermediateOutputPath.TrimEnd('\'))" /i "$(WindowsSdkDir)Include\$(WindowsSDKVersion)um" /i "$(WindowsSdkDir)Include\$(WindowsSDKVersion)shared" /D _UNICODE /D UNICODE /l"0x0409" /r /fo "$(Win32Resource)" "$(MsBuildThisFileDirectory)NativeVersion.rc"" /> + <Target Name="NativeResourceCompile" + Condition="'$(GenerateNativeVersionInfo)'=='true'" + DependsOnTargets="GenerateVersionHeader" + Inputs="$(MsBuildThisFileDirectory)NativeVersion.rc" + Outputs="$(Win32Resource)"> + + <Exec Command=""$(RCPath)" /nologo /x /i "$(IntermediateOutputPath.TrimEnd('\'))" /i "$(WindowsSdkDir)Include\$(WindowsSDKVersion)um" /i "$(WindowsSdkDir)Include\$(WindowsSDKVersion)\shared" /D _UNICODE /D UNICODE /l"0x0409" /r /fo "$(Win32Resource)" "$(MsBuildThisFileDirectory)NativeVersion.rc"" /> + </Target> -</Project>
\ No newline at end of file +</Project> |