[automated] Merge branch 'release/8.0.1xx' => 'release/8.0.2xx' (#18682)
This commit is contained in:
commit
412bfd77be
8 changed files with 78 additions and 11 deletions
|
@ -227,13 +227,13 @@
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>da98edc4c3ea539f109ea320672136ceb32591a7</Sha>
|
<Sha>da98edc4c3ea539f109ea320672136ceb32591a7</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23621.3">
|
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23578.2">
|
||||||
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
||||||
<Sha>702f946f89ace6197fdca2ac309d32187c4bc1bd</Sha>
|
<Sha>5263b603d90991a0c200aca8b8892c3d7cfe4751</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.DarcLib" Version="1.1.0-beta.23621.3">
|
<Dependency Name="Microsoft.DotNet.DarcLib" Version="1.1.0-beta.23578.2">
|
||||||
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
||||||
<Sha>702f946f89ace6197fdca2ac309d32187c4bc1bd</Sha>
|
<Sha>5263b603d90991a0c200aca8b8892c3d7cfe4751</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.Extensions.Logging.Console" Version="8.0.0-alpha.1.22557.12">
|
<Dependency Name="Microsoft.Extensions.Logging.Console" Version="8.0.0-alpha.1.22557.12">
|
||||||
<Uri>https://github.com/dotnet/runtime</Uri>
|
<Uri>https://github.com/dotnet/runtime</Uri>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
These URLs can't be composed from their base URL and version as we read them from the
|
These URLs can't be composed from their base URL and version as we read them from the
|
||||||
prep.sh and pipeline scripts, outside of MSBuild.
|
prep.sh and pipeline scripts, outside of MSBuild.
|
||||||
-->
|
-->
|
||||||
<PrivateSourceBuiltArtifactsUrl>https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.8.0.101-servicing.23601.1.centos.8-x64.tar.gz</PrivateSourceBuiltArtifactsUrl>
|
<PrivateSourceBuiltArtifactsUrl>https://dotnetcli.azureedge.net/source-built-artifacts/assets/Private.SourceBuilt.Artifacts.8.0.102-servicing.24073.1.centos.8-x64.tar.gz</PrivateSourceBuiltArtifactsUrl>
|
||||||
<PrivateSourceBuiltSdkUrl_CentOS8Stream>https://dotnetcli.azureedge.net/source-built-artifacts/sdks/dotnet-sdk-8.0.101-centos.8-x64.tar.gz</PrivateSourceBuiltSdkUrl_CentOS8Stream>
|
<PrivateSourceBuiltSdkUrl_CentOS8Stream>https://dotnetcli.azureedge.net/source-built-artifacts/sdks/dotnet-sdk-8.0.102-centos.8-x64.tar.gz</PrivateSourceBuiltSdkUrl_CentOS8Stream>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"tools": {
|
"tools": {
|
||||||
"dotnet": "8.0.101"
|
"dotnet": "8.0.102"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.Build.CentralPackageVersions": "2.0.1",
|
"Microsoft.Build.CentralPackageVersions": "2.0.1",
|
||||||
|
|
|
@ -110,6 +110,7 @@
|
||||||
<EnvironmentVariables Include="DeterministicSourcePaths=false" Condition="'$(DeterministicBuildOptOut)' == 'true'" />
|
<EnvironmentVariables Include="DeterministicSourcePaths=false" Condition="'$(DeterministicBuildOptOut)' == 'true'" />
|
||||||
|
|
||||||
<EnvironmentVariables Include="SourceRoot=$(ProjectDirectory)" />
|
<EnvironmentVariables Include="SourceRoot=$(ProjectDirectory)" />
|
||||||
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition="'$(EnableExtraDebugging)' == 'true'">
|
<ItemGroup Condition="'$(EnableExtraDebugging)' == 'true'">
|
||||||
|
|
|
@ -64,7 +64,8 @@
|
||||||
"name": "aspire",
|
"name": "aspire",
|
||||||
"defaultRemote": "https://github.com/dotnet/aspire",
|
"defaultRemote": "https://github.com/dotnet/aspire",
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"src/Aspire.Dashboard/**/*"
|
"src/Aspire.Dashboard/**/*",
|
||||||
|
"samples/**/*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,6 +55,7 @@ target_link_libraries(Finalizer shell32.lib)
|
||||||
target_link_libraries(Finalizer advapi32.lib)
|
target_link_libraries(Finalizer advapi32.lib)
|
||||||
target_link_libraries(Finalizer version.lib)
|
target_link_libraries(Finalizer version.lib)
|
||||||
target_link_libraries(Finalizer msi.lib)
|
target_link_libraries(Finalizer msi.lib)
|
||||||
|
target_link_libraries(Finalizer shlwapi.lib)
|
||||||
|
|
||||||
# Add WiX libraries
|
# Add WiX libraries
|
||||||
target_link_libraries(Finalizer wcautil.lib)
|
target_link_libraries(Finalizer wcautil.lib)
|
||||||
|
|
|
@ -492,12 +492,64 @@ LExit:
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RemoveInstallStateFile(LPWSTR sczSdkFeatureBandVersion, LPWSTR sczPlatform)
|
||||||
|
{
|
||||||
|
HRESULT hr = S_OK;
|
||||||
|
LPWSTR sczProgramData = NULL;
|
||||||
|
LPWSTR sczInstallStatePath = NULL;
|
||||||
|
LPWSTR sczPath = NULL;
|
||||||
|
|
||||||
|
hr = ShelGetFolder(&sczProgramData, CSIDL_COMMON_APPDATA);
|
||||||
|
ExitOnFailure(hr, "Failed to get shell folder.");
|
||||||
|
|
||||||
|
hr = PathConcat(sczProgramData, L"dotnet", &sczInstallStatePath);
|
||||||
|
ExitOnFailure(hr, "Failed to concat dotnet to install state path.");
|
||||||
|
|
||||||
|
hr = PathConcat(sczInstallStatePath, L"workloads", &sczInstallStatePath);
|
||||||
|
ExitOnFailure(hr, "Failed to concat workloads to install state path.");
|
||||||
|
|
||||||
|
hr = PathConcat(sczInstallStatePath, sczPlatform, &sczInstallStatePath);
|
||||||
|
ExitOnFailure(hr, "Failed to concat platform (%ls) to install state path.", sczPlatform);
|
||||||
|
|
||||||
|
hr = PathConcat(sczInstallStatePath, sczSdkFeatureBandVersion, &sczInstallStatePath);
|
||||||
|
ExitOnFailure(hr, "Failed to concat feature band (%ls) to install state path.", sczSdkFeatureBandVersion);
|
||||||
|
|
||||||
|
hr = PathConcat(sczInstallStatePath, L"installstate", &sczInstallStatePath);
|
||||||
|
ExitOnFailure(hr, "Failed to concat installstate to install state path.");
|
||||||
|
|
||||||
|
hr = PathConcat(sczInstallStatePath, L"default.json", &sczInstallStatePath);
|
||||||
|
ExitOnFailure(hr, "Failed to concat default.json to install state path.");
|
||||||
|
|
||||||
|
if (FileExistsEx(sczInstallStatePath, NULL))
|
||||||
|
{
|
||||||
|
LogStringLine(REPORT_STANDARD, "Deleting install state file: %ls", sczInstallStatePath);
|
||||||
|
hr = FileEnsureDelete(sczInstallStatePath);
|
||||||
|
ExitOnFailure(hr, "Failed to delete install state file: %ls", sczInstallStatePath);
|
||||||
|
|
||||||
|
hr = PathGetParentPath(sczInstallStatePath, &sczPath);
|
||||||
|
ExitOnFailure(hr, "Failed to get parent path of install state file.");
|
||||||
|
|
||||||
|
LogStringLine(REPORT_STANDARD, "Cleaning up empty workload folders.");
|
||||||
|
DirDeleteEmptyDirectoriesToRoot(sczPath, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LogStringLine(REPORT_STANDARD, "Install state file does not exist: %ls", sczInstallStatePath);
|
||||||
|
}
|
||||||
|
|
||||||
|
LExit:
|
||||||
|
ReleaseStr(sczPath);
|
||||||
|
ReleaseStr(sczInstallStatePath)
|
||||||
|
ReleaseStr(sczProgramData);
|
||||||
|
}
|
||||||
|
|
||||||
int wmain(int argc, wchar_t* argv[])
|
int wmain(int argc, wchar_t* argv[])
|
||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
DWORD dwExitCode = 0;
|
DWORD dwExitCode = 0;
|
||||||
LPWSTR sczDependent = NULL;
|
LPWSTR sczDependent = NULL;
|
||||||
LPWSTR sczFeatureBandVersion = NULL;
|
LPWSTR sczFeatureBandVersion = NULL;
|
||||||
|
LPWSTR sczPlatform = NULL;
|
||||||
BOOL bRestartRequired = FALSE;
|
BOOL bRestartRequired = FALSE;
|
||||||
BOOL bSdkFeatureBandInstalled = FALSE;
|
BOOL bSdkFeatureBandInstalled = FALSE;
|
||||||
int iMajor = 0;
|
int iMajor = 0;
|
||||||
|
@ -507,16 +559,19 @@ int wmain(int argc, wchar_t* argv[])
|
||||||
hr = ::Initialize(argc, argv);
|
hr = ::Initialize(argc, argv);
|
||||||
ExitOnFailure(hr, "Failed to initialize.");
|
ExitOnFailure(hr, "Failed to initialize.");
|
||||||
|
|
||||||
|
hr = StrAllocString(&sczPlatform, argv[3], 0);
|
||||||
|
ExitOnFailure(hr, "Failed to copy platform argument.");
|
||||||
|
|
||||||
// Convert the full SDK version to a feature band version
|
// Convert the full SDK version to a feature band version
|
||||||
hr = ParseSdkVersion(argv[2], &sczFeatureBandVersion);
|
hr = ParseSdkVersion(argv[2], &sczFeatureBandVersion);
|
||||||
ExitOnFailure(hr, "Failed to parse version, %ls.", argv[2]);
|
ExitOnFailure(hr, "Failed to parse version, %ls.", argv[2]);
|
||||||
|
|
||||||
// Create the dependent value, e.g., Microsoft.NET.Sdk,6.0.300,arm64
|
// Create the dependent value, e.g., Microsoft.NET.Sdk,6.0.300,arm64
|
||||||
hr = StrAllocFormatted(&sczDependent, L"Microsoft.NET.Sdk,%ls,%ls", sczFeatureBandVersion, argv[3]);
|
hr = StrAllocFormatted(&sczDependent, L"Microsoft.NET.Sdk,%ls,%ls", sczFeatureBandVersion, sczPlatform);
|
||||||
ExitOnFailure(hr, "Failed to create dependent.");
|
ExitOnFailure(hr, "Failed to create dependent.");
|
||||||
LogStringLine(REPORT_STANDARD, "Setting target dependent to %ls.", sczDependent);
|
LogStringLine(REPORT_STANDARD, "Setting target dependent to %ls.", sczDependent);
|
||||||
|
|
||||||
hr = ::DetectSdk(sczFeatureBandVersion, argv[3], &bSdkFeatureBandInstalled);
|
hr = ::DetectSdk(sczFeatureBandVersion, sczPlatform, &bSdkFeatureBandInstalled);
|
||||||
ExitOnFailure(hr, "Failed to detect installed SDKs.");
|
ExitOnFailure(hr, "Failed to detect installed SDKs.");
|
||||||
|
|
||||||
// If the feature band is still present, do not remove workloads.
|
// If the feature band is still present, do not remove workloads.
|
||||||
|
@ -529,7 +584,7 @@ int wmain(int argc, wchar_t* argv[])
|
||||||
hr = ::RemoveDependent(sczDependent, &bRestartRequired);
|
hr = ::RemoveDependent(sczDependent, &bRestartRequired);
|
||||||
ExitOnFailure(hr, "Failed to remove dependent \"%ls\".", sczDependent);
|
ExitOnFailure(hr, "Failed to remove dependent \"%ls\".", sczDependent);
|
||||||
|
|
||||||
hr = ::DeleteWorkloadRecords(sczFeatureBandVersion, argv[3]);
|
hr = ::DeleteWorkloadRecords(sczFeatureBandVersion, sczPlatform);
|
||||||
ExitOnFailure(hr, "Failed to remove workload records.");
|
ExitOnFailure(hr, "Failed to remove workload records.");
|
||||||
|
|
||||||
if (bRestartRequired)
|
if (bRestartRequired)
|
||||||
|
@ -537,9 +592,12 @@ int wmain(int argc, wchar_t* argv[])
|
||||||
dwExitCode = ERROR_SUCCESS_REBOOT_REQUIRED;
|
dwExitCode = ERROR_SUCCESS_REBOOT_REQUIRED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RemoveInstallStateFile(sczFeatureBandVersion, sczPlatform);
|
||||||
|
|
||||||
LExit:
|
LExit:
|
||||||
ReleaseStr(sczDependent);
|
ReleaseStr(sczDependent);
|
||||||
ReleaseStr(sczFeatureBandVersion);
|
ReleaseStr(sczFeatureBandVersion);
|
||||||
|
ReleaseStr(sczPlatform);
|
||||||
LogUninitialize(TRUE);
|
LogUninitialize(TRUE);
|
||||||
RegUninitialize();
|
RegUninitialize();
|
||||||
WiuUninitialize();
|
WiuUninitialize();
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
#include <winreg.h>
|
#include <winreg.h>
|
||||||
#include <msi.h>
|
#include <msi.h>
|
||||||
#include <pathcch.h>
|
#include <pathcch.h>
|
||||||
|
#include <shlobj.h>
|
||||||
|
#include <shlwapi.h>
|
||||||
|
|
||||||
// Configure some logging parameters for WiX
|
// Configure some logging parameters for WiX
|
||||||
#define ExitTrace LogErrorString
|
#define ExitTrace LogErrorString
|
||||||
|
@ -26,3 +28,7 @@
|
||||||
#include "pathutil.h"
|
#include "pathutil.h"
|
||||||
#include "strutil.h"
|
#include "strutil.h"
|
||||||
#include "wiutil.h"
|
#include "wiutil.h"
|
||||||
|
#include "dirutil.h"
|
||||||
|
#include "fileutil.h"
|
||||||
|
#include "shelutil.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue