diff --git a/README.md b/README.md
index ba014315e..d529f7c5d 100644
--- a/README.md
+++ b/README.md
@@ -216,3 +216,5 @@ License
-------
By downloading the .zip you are agreeing to the terms in the project [EULA](https://aka.ms/dotnet-core-eula).
+
+
diff --git a/build/DependencyVersions.props b/build/DependencyVersions.props
index d4227b341..099c68052 100644
--- a/build/DependencyVersions.props
+++ b/build/DependencyVersions.props
@@ -10,7 +10,7 @@
2.1.1
2.1.1
2.1.1
- 2.1.1
+ 2.1.2
$(MicrosoftNETCoreAppPackageVersion)
15.8.0-preview-000138
$(MicrosoftBuildPackageVersion)
@@ -23,10 +23,10 @@
$(MicrosoftCodeAnalysisCSharpPackageVersion)
$(MicrosoftCodeAnalysisCSharpPackageVersion)
$(MicrosoftCodeAnalysisCSharpPackageVersion)
- 2.1.400-preview-63027-01
+ 2.1.400-preview-63110-09
$(MicrosoftNETSdkPackageVersion)
$(MicrosoftAspNetCoreAppPackageVersion)
- 2.1.400-preview1-20180614-1774926
+ 2.1.400-preview1-20180705-1834985
$(MicrosoftNETSdkWebPackageVersion)
$(MicrosoftNETSdkWebPackageVersion)
1.0.2-beta3
diff --git a/build/package/Installer.MSI.targets b/build/package/Installer.MSI.targets
index 649947574..3c8f0f2f8 100644
--- a/build/package/Installer.MSI.targets
+++ b/build/package/Installer.MSI.targets
@@ -14,6 +14,7 @@
$(InstallerOutputDirectory)/$(ArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)-engine.exe
$(RepoRoot)/packaging/windows/clisdk/generatemsi.ps1
+ $(RepoRoot)/packaging/windows/clisdk/stablefileidforapphosttransform.xslt
$(RepoRoot)/packaging/windows/clisdk/generatebundle.ps1
$(RepoRoot)/packaging/windows/clisdk/generatenupkg.ps1
@@ -110,7 +111,9 @@
'$(SimpleVersion)'
'$(NugetVersion)'
'$(SdkInstallerUpgradeCode)'
- '$(Architecture)'" />
+ '$(Architecture)'
+ '$(SdkStableFileIdForApphostTransform)'
+ " />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ apphosttemplateapphostexe
+
+
+
+
diff --git a/packaging/windows/clisdk/generatemsi.ps1 b/packaging/windows/clisdk/generatemsi.ps1
index fc9da871d..69c17d078 100644
--- a/packaging/windows/clisdk/generatemsi.ps1
+++ b/packaging/windows/clisdk/generatemsi.ps1
@@ -10,7 +10,8 @@ param(
[Parameter(Mandatory=$true)][string]$DotnetCLIDisplayVersion,
[Parameter(Mandatory=$true)][string]$DotnetCLINugetVersion,
[Parameter(Mandatory=$true)][string]$UpgradeCode,
- [Parameter(Mandatory=$true)][string]$Architecture
+ [Parameter(Mandatory=$true)][string]$Architecture,
+ [Parameter(Mandatory=$true)][string]$StableFileIdForApphostTransform
)
. "$PSScriptRoot\..\..\..\scripts\common\_common.ps1"
@@ -26,7 +27,19 @@ function RunHeat
Write-Output Running heat..
- .\heat.exe dir `"$inputDir`" -template fragment -sreg -gg -var var.DotnetSrc -cg InstallFiles -srd -dr DOTNETHOME -out $InstallFileswsx | Out-Host
+ # -t $StableFileIdForApphostTransform to avoid sign check baseline apphost.exe name changes every build. Sign check uses File Id in MSI as whitelist name.
+ # Template apphost.exe get a new "File Id" in msi different every time (since File Id is generated according to file
+ # path, and file path has version number)
+ # use XSLT tranform to match the file path contains "AppHostTemplate\apphost.exe" and give it the same ID all the time.
+
+ .\heat.exe dir `"$inputDir`" -template fragment `
+ -sreg -gg `
+ -var var.DotnetSrc `
+ -cg InstallFiles `
+ -srd `
+ -dr DOTNETHOME `
+ -t $StableFileIdForApphostTransform `
+ -out $InstallFileswsx | Out-Host
if($LastExitCode -ne 0)
{
diff --git a/src/Microsoft.DotNet.Cli.Utils/LocalizableStrings.resx b/src/Microsoft.DotNet.Cli.Utils/LocalizableStrings.resx
index 0052c7542..18c0804fd 100644
--- a/src/Microsoft.DotNet.Cli.Utils/LocalizableStrings.resx
+++ b/src/Microsoft.DotNet.Cli.Utils/LocalizableStrings.resx
@@ -276,4 +276,7 @@
dotnet tool install --global {1}
+
+ Using home directory '{0}' set by the '{1}' environment variable.
+
diff --git a/src/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.cs.xlf b/src/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.cs.xlf
index bad5c47e0..502437409 100644
--- a/src/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.cs.xlf
+++ b/src/Microsoft.DotNet.Cli.Utils/xlf/LocalizableStrings.cs.xlf
@@ -268,6 +268,11 @@ dotnet tool install --global {1}
dotnet tool install --global {1}
+
+ Using home directory '{0}' set by the '{1}' environment variable.
+ Using home directory '{0}' set by the '{1}' environment variable.
+
+