Skip to content

Commit 4384670

Browse files
Backflow from https://github.com/dotnet/dotnet / 79c85d9 build 287426
[[ commit created by automation ]]
1 parent 2ee5539 commit 4384670

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Layout/pkg/windows/Directory.Build.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,22 @@
4444
Text="Bundles must target x86. InstallerPlatform=$(InstallerPlatform)" />
4545
</Target>
4646

47+
<!-- This target can be used to set additional Wix options. -->
48+
<Target Name="SetAdditionalWixOptions" BeforeTargets="CoreCompile">
49+
<PropertyGroup>
50+
<!-- Use backwards compatible GUID generation. -->
51+
<CompilerAdditionalOptions>$(CompilerAdditionalOptions) -bcgg</CompilerAdditionalOptions>
52+
</PropertyGroup>
53+
</Target>
54+
4755
<Target Name="GenerateWixpackPackage" AfterTargets="CoreCompile">
4856
<PropertyGroup>
4957
<WixpackWorkingDir>$(IntermediateOutputPath)wixpack</WixpackWorkingDir>
5058
<WixpackOutputDir>$(ArtifactsNonShippingPackagesDir)</WixpackOutputDir>
5159
</PropertyGroup>
5260

5361
<CreateWixBuildWixpack
62+
AdditionalOptions="$(CompilerAdditionalOptions) $(LinkerAdditionalOptions)"
5463
BindTrackingFile="$(IntermediateOutputPath)$(BindTrackingFilePrefix)%(CultureGroup.OutputSuffix)$(BindTrackingFileExtension)"
5564
Cultures="%(CultureGroup.Identity)"
5665
DefineConstants="$(DefineConstants);$(SolutionDefineConstants);$(ProjectDefineConstants);$(ProjectReferenceDefineConstants)"

0 commit comments

Comments
 (0)