Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit d881d45

Browse files
author
Piotr Puszkiewicz
authored
Merge pull request #5609 from piotrpMSFT/piotrpmsft/infra/msiincrementaltiy
Add incrementality check for MSI generation
2 parents 5612b8b + 0a634d5 commit d881d45

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build/package/Microsoft.DotNet.Cli.Installer.MSI.targets

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
<SdkInstallerNupkgFile>$(InstallerOutputDirectory)/VS.Redist.Common.Net.Core.SDK.$(Architecture).$(NugetVersion).nupkg</SdkInstallerNupkgFile>
2727
</PropertyGroup>
2828

29+
<!-- Generate SDK MSI Inputs -->
30+
<ItemGroup>
31+
<GenerateSdkMsiInputs Include="$(SdkLayoutOutputDirectory)/**/*;
32+
$(SdkGenerateMsiPowershellScript)" />
33+
</ItemGroup>
34+
2935
<!-- Consumed By Publish -->
3036
<ItemGroup>
3137
<GeneratedInstallers Include="$(SdkInstallerFile);$(CombinedFrameworkSdkHostInstallerFile)" />
@@ -74,7 +80,9 @@
7480

7581
<Target Name="GenerateSdkMsi"
7682
DependsOnTargets="Init;Layout;AcquireWix;MsiTargetsSetupInputOutputs"
77-
Condition=" '$(OS)' == 'Windows_NT'">
83+
Condition=" '$(OS)' == 'Windows_NT'"
84+
Inputs="@(GenerateSdkMsiInputs)"
85+
Outputs="$(SdkInstallerFile)">
7886

7987
<Exec Command="powershell -NoProfile -NoLogo $(SdkGenerateMsiPowershellScript)
8088
'$(SdkLayoutOutputDirectory)'

0 commit comments

Comments
 (0)