Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[automated] Merge branch 'release/9.0.1xx' => 'release/9.0.2xx' #44344

Merged
merged 70 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
1b4be33
Update the error for targeting net9 in 17.11
marcpopMSFT Aug 30, 2024
9470a58
Looks like 17.11.4 is the latest msbuild
marcpopMSFT Sep 3, 2024
5215daf
Intentionally remove 1213 as it's specific to net8.
marcpopMSFT Sep 4, 2024
93d894b
Merge remote-tracking branch 'origin/release/9.0.1xx' into marcpopMSF…
marcpopMSFT Sep 4, 2024
a266c8f
Merge branch 'release/9.0.1xx' into marcpopMSFT-prepforrelease
marcpopMSFT Sep 9, 2024
671c8d5
Merge branch 'release/9.0.1xx' into marcpopMSFT-prepforrelease
marcpopMSFT Sep 17, 2024
01bc7a1
Merge branch 'release/9.0.1xx' into marcpopMSFT-prepforrelease
marcpopMSFT Oct 8, 2024
95afe47
Set the minimum version to 17.11.0 but set the build version to 17.11…
marcpopMSFT Oct 10, 2024
6e68e9b
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 16, 2024
247f719
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 16, 2024
c07772c
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 17, 2024
01bdee6
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Oct 17, 2024
418a145
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Oct 17, 2024
6499358
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Oct 17, 2024
e4fc292
Update dependencies from https://github.com/dotnet/roslyn build 20241…
dotnet-maestro[bot] Oct 17, 2024
d4eff2d
Update dependencies from https://github.com/dotnet/sourcelink build 2…
dotnet-maestro[bot] Oct 17, 2024
eed3eb8
Update dependencies from https://github.com/dotnet/source-build-exter…
dotnet-maestro[bot] Oct 17, 2024
4fb94f2
Fix NetRuntimeBlobVersion (#44281)
mthalman Oct 17, 2024
36ed9ca
Merge remote-tracking branch 'origin/release/9.0.1xx' into marcpopMSF…
marcpopMSFT Oct 17, 2024
42633a7
[StaticWebAssets] Make sure the quality is serialized as culture inva…
javiercn Oct 17, 2024
c30463d
Disable tests when running on 17.11 or newer as this set of tests tar…
marcpopMSFT Oct 17, 2024
8219923
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 17, 2024
a085eb8
Enable is shipping package in the installer redist to stabilize brand…
marcpopMSFT Oct 17, 2024
8ff434b
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 18, 2024
25d5488
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 18, 2024
d133938
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 18, 2024
52643ad
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 18, 2024
eb4d937
[release/9.0.1xx] Update dependencies from dotnet/roslyn (#44278)
v-wuzhai Oct 18, 2024
fa7a629
[release/9.0.1xx] Update dependencies from dotnet/source-build-extern…
v-wuzhai Oct 18, 2024
6d6c32f
[release/9.0.1xx] Update dependencies from dotnet/sourcelink (#44279)
v-wuzhai Oct 18, 2024
74a8d17
[release/9.0.1xx] Update dependencies from dotnet/test-templates (#44…
v-wuzhai Oct 18, 2024
34bda53
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 18, 2024
14a9e74
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 18, 2024
26ee292
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Oct 18, 2024
5ba8ae6
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Oct 18, 2024
16a7188
fix port error when fallback to http
dameng324 Oct 10, 2024
b533829
Fixed typo
dameng324 Oct 10, 2024
ccceafd
add test for `FallbackToHttpMessageHandler`
dameng324 Oct 10, 2024
e35b936
use custom scheme Uri to check registry contains port or not
dameng324 Oct 11, 2024
b46a39a
[release/9.0.1xx] [Containers] Fix insecure registry handling to use …
baronfel Oct 18, 2024
475af3d
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 18, 2024
86042e2
Enable is shipping package in the installer redist to stabilize brand…
marcpopMSFT Oct 18, 2024
c203912
Revert "msbuild patch to remove BuildXL feed (#44199)"
marcpopMSFT Oct 18, 2024
a6272dd
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
marcpopMSFT Oct 18, 2024
1c7687b
Merge branch 'release/9.0.1xx' into marcpopMSFT-prepforrelease
marcpopMSFT Oct 18, 2024
b95bbf9
[release/9.0.1xx] Update dependencies from dotnet/templating (#44302)
dotnet-maestro[bot] Oct 18, 2024
f5127b1
[release/9.0.1xx] Update dependencies from dotnet/source-build-refere…
marcpopMSFT Oct 18, 2024
1f1f640
Update dependencies from https://github.com/dotnet/razor build 202410…
dotnet-maestro[bot] Oct 19, 2024
e4bbfbf
Update dependencies from https://github.com/dotnet/msbuild build 2024…
dotnet-maestro[bot] Oct 19, 2024
080a171
[release/9.0.1xx] Update dependencies from dotnet/razor (#44316)
marcpopMSFT Oct 21, 2024
95bea78
Update the error for targeting net9 in 17.11 (#43143)
marcpopMSFT Oct 21, 2024
e6a27f2
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 21, 2024
668686a
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
dotnet-bot Oct 21, 2024
1852b61
Merge branch 'release/9.0.1xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 21, 2024
f43b47e
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Oct 21, 2024
6335f29
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Oct 21, 2024
2ea3a8c
[release/9.0.1xx] Update dependencies from dotnet/msbuild (#44299)
marcpopMSFT Oct 21, 2024
dfbbe85
Localized file check-in by OneLocBuild Task: Build definition ID 140:…
marcpopMSFT Oct 21, 2024
1af83e0
[release/9.0.1xx] Fix SB assembly version test (#44334)
github-actions[bot] Oct 21, 2024
8ba392d
[release/9.0.1xx] Fix assembly version diff test for missing file (#4…
github-actions[bot] Oct 21, 2024
e4635e7
Update dependencies from https://github.com/dotnet/test-templates bui…
dotnet-maestro[bot] Oct 21, 2024
1efe473
[release/9.0.1xx] Update dependencies from dotnet/test-templates (#44…
Evangelink Oct 21, 2024
3580c61
Merge branch 'release/9.0.2xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 22, 2024
c3dc830
Revert the changes made to the directory files under eng and the nuge…
v-wuzhai Oct 22, 2024
a5f796c
Fix template tests
v-wuzhai Oct 22, 2024
a83ebb0
Try updating the SDK version to 9.0.200
v-wuzhai Oct 23, 2024
d0699f2
Fix the minimum version logic
marcpopMSFT Oct 23, 2024
520bd7e
Revert "Try updating the SDK version to 9.0.200"
v-wuzhai Oct 24, 2024
f0d62dc
Merge branch 'release/9.0.2xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 25, 2024
d4d8365
Merge branch 'release/9.0.2xx' of https://github.com/dotnet/sdk into …
v-wuzhai Oct 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@
<!-- End: Package sources from dotnet-windowsdesktop -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
</disabledPackageSources>
</configuration>
</configuration>
6 changes: 4 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,17 @@

Some .NET Framework tasks and the resolver will need to run in a VS/MSBuild that is older
than the very latest, based on what we want the SDK to support. So use a version that matches the version
in minimumMSBuildVersion. In these cases, we don't want to use MicrosoftBuildVersion and other
in minimumMSBuildVersion. Note that MSBuild has started versioning before release so the version we use as the Minimum should be .0
to ensure we load in VS but the version we build against should be the version of MSBuild that ships in the .0 VS release.
In these cases, we don't want to use MicrosoftBuildVersion and other
associated properties that are updated by the VMR infrastructure. So, we read this version
from the 'minimumMSBuildVersion' file in non-source-only cases into MicrosoftBuildMinimumVersion,
then use that in Directory.Packages.props.

At usage sites, either we use MicrosoftBuildMinimumVersion, or MicrosoftBuildVersion in source-only modes. -->
<MicrosoftBuildVersion>17.13.0-preview-24524-23</MicrosoftBuildVersion>
<MicrosoftBuildLocalizationVersion>17.13.0-preview-24524-23</MicrosoftBuildLocalizationVersion>
<MicrosoftBuildMinimumVersion Condition="Exists('$(RepoRoot)src\Layout\redist\minimumMSBuildVersion') and '$(DotNetBuildSourceOnly)' != 'true'">$([System.IO.File]::ReadAllText('$(RepoRoot)src\Layout\redist\minimumMSBuildVersion').Trim())</MicrosoftBuildMinimumVersion>
<MicrosoftBuildMinimumVersion Condition="'$(DotNetBuildSourceOnly)' != 'true'">17.11.4</MicrosoftBuildMinimumVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/dotnet/templating -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ namespace Microsoft.NET.Build.Containers;
/// </summary>
internal sealed partial class FallbackToHttpMessageHandler : DelegatingHandler
{
private readonly string _registryName;
private readonly string _host;
private readonly int _port;
private readonly ILogger _logger;
private bool _fallbackToHttp;

public FallbackToHttpMessageHandler(string host, int port, HttpMessageHandler innerHandler, ILogger logger) : base(innerHandler)
public FallbackToHttpMessageHandler(string registryName, string host, int port, HttpMessageHandler innerHandler, ILogger logger)
: base(innerHandler)
{
_registryName = registryName;
_host = host;
_port = port;
_logger = logger;
Expand All @@ -38,7 +41,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
{
if (canFallback && _fallbackToHttp)
{
FallbackToHttp(request);
FallbackToHttp(_registryName, request);
canFallback = false;
}

Expand All @@ -51,7 +54,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
{
// Try falling back.
_logger.LogTrace("Attempt to fall back to http for {uri}.", uri);
FallbackToHttp(request);
FallbackToHttp(_registryName, request);
HttpResponseMessage response = await base.SendAsync(request, cancellationToken).ConfigureAwait(false);

// Fall back was successful. Use http for all new requests.
Expand All @@ -76,10 +79,22 @@ internal static bool ShouldAttemptFallbackToHttp(HttpRequestException exception)
return exception.HttpRequestError == HttpRequestError.SecureConnectionError;
}

private static void FallbackToHttp(HttpRequestMessage request)
private static bool RegistryNameContainsPort(string registryName)
{
// use `container` scheme which does not have a default port.
return new Uri($"container://{registryName}").Port != -1;
}

private static void FallbackToHttp(string registryName, HttpRequestMessage request)
{
var uriBuilder = new UriBuilder(request.RequestUri!);
uriBuilder.Scheme = "http";
if (RegistryNameContainsPort(registryName) == false)
{
// registeryName does not contains port number, so reset the port number to -1, otherwise it will be https default port 443
uriBuilder.Port = -1;
}

request.RequestUri = uriBuilder.Uri;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ internal DefaultRegistryAPI(string registryName, Uri baseUri, bool isInsecureReg

private static HttpClient CreateClient(string registryName, Uri baseUri, ILogger logger, bool isInsecureRegistry, RegistryMode mode)
{
HttpMessageHandler innerHandler = CreateHttpHandler(baseUri, isInsecureRegistry, logger);
HttpMessageHandler innerHandler = CreateHttpHandler(registryName, baseUri, isInsecureRegistry, logger);

HttpMessageHandler clientHandler = new AuthHandshakeMessageHandler(registryName, innerHandler, logger, mode);

Expand All @@ -56,7 +56,7 @@ private static HttpClient CreateClient(string registryName, Uri baseUri, ILogger
return client;
}

private static HttpMessageHandler CreateHttpHandler(Uri baseUri, bool allowInsecure, ILogger logger)
private static HttpMessageHandler CreateHttpHandler(string registryName, Uri baseUri, bool allowInsecure, ILogger logger)
{
var socketsHttpHandler = new SocketsHttpHandler()
{
Expand All @@ -75,7 +75,7 @@ private static HttpMessageHandler CreateHttpHandler(Uri baseUri, bool allowInsec
RemoteCertificateValidationCallback = IgnoreCertificateErrorsForSpecificHost(baseUri.Host)
};

return new FallbackToHttpMessageHandler(baseUri.Host, baseUri.Port, socketsHttpHandler, logger);
return new FallbackToHttpMessageHandler(registryName, baseUri.Host, baseUri.Port, socketsHttpHandler, logger);
}

private static RemoteCertificateValidationCallback IgnoreCertificateErrorsForSpecificHost(string host)
Expand Down
1 change: 1 addition & 0 deletions src/Installer/redist-installer/redist-installer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<BundleRuntimePacks Condition="'$(BundleRuntimePacks)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">true</BundleRuntimePacks>
<!-- DotNetBuildOrchestrator is (currently) needed in order to obtain NuGet packages from the runtime build. -->
<BundleNativeAotCompiler Condition="'$(BundleNativeAotCompiler)' == '' and '$(DotNetBuildSourceOnly)' == 'true' and '$(SourceBuildUseMonoRuntime)' != 'true' and '$(DotNetBuildOrchestrator)' == 'true'">true</BundleNativeAotCompiler>
<IsShippingPackage>true</IsShippingPackage>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
<!-- In unified build, the layout does match, so use the runtime package versions rather than the VS redist versions -->
<AspNetCoreBlobVersion>$(MicrosoftAspNetCoreAppRefInternalPackageVersion)</AspNetCoreBlobVersion>

<NetRuntimeBlobVersion>$(VSRedistCommonNetCoreSharedFrameworkx6490PackageVersion)</NetRuntimeBlobVersion>
<NetRuntimeBlobVersion Condition=" '$(DotNetBuildOrchestrator)' == 'true' ">$(MicrosoftNETCoreAppRuntimePackageVersion)</NetRuntimeBlobVersion>
<NetRuntimeBlobVersion>$(MicrosoftNETCorePlatformsPackageVersion)</NetRuntimeBlobVersion>

<WindowsDesktopBlobVersion>$(VSRedistCommonWindowsDesktopSharedFrameworkx6490PackageVersion)</WindowsDesktopBlobVersion>
<WindowsDesktopBlobVersion Condition=" '$(DotNetBuildOrchestrator)' == 'true' ">$(MicrosoftWindowsDesktopAppRuntimePackageVersion)</WindowsDesktopBlobVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/Layout/redist/minimumMSBuildVersion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
17.8.3
17.11.0
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ private void RemoveExcludedAssemblyVersionPaths(Dictionary<string, Version?> sbS
{
string assemblyPath = sbSdkFileArray[i];
Version? sbVersion = sbSdkAssemblyVersions[assemblyPath];
Version? msftVersion = msftSdkAssemblyVersions[assemblyPath];
if (!msftSdkAssemblyVersions.TryGetValue(assemblyPath, out Version? msftVersion))
{
sbSdkAssemblyVersions.Remove(assemblyPath);
continue;
}

if (sbVersion is not null &&
msftVersion is not null &&
Expand Down Expand Up @@ -169,7 +173,7 @@ private string FindMatchingFilePath(string rootDir, Matcher matcher, string repr
}
}

Assert.Fail($"Unable to find matching file for '{representativeFile}' in '{rootDir}'.");
OutputHelper.WriteLine($"Unable to find matching file for '{representativeFile}' in '{rootDir}'.");
return string.Empty;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
<add key="dotnet9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
<add key="dotnet9-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" />
<add key="darc-pub-dotnet-aspnetcore-3cc83de" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-aspnetcore-3cc83de3/nuget/v3/index.json" />
<add key="darc-pub-dotnet-runtime-d398172" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-d3981726/nuget/v3/index.json" />
</packageSources>
</configuration>
22 changes: 0 additions & 22 deletions src/SourceBuild/patches/msbuild/0001-Remove-BuildXL-feed.patch

This file was deleted.

3 changes: 2 additions & 1 deletion src/StaticWebAssetsSdk/Tasks/ApplyCompressionNegotiation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System.Diagnostics;
using System.Globalization;
using Microsoft.Build.Framework;
using Microsoft.NET.Sdk.StaticWebAssets.Tasks;

Expand Down Expand Up @@ -102,7 +103,7 @@ public override bool Execute()
{
Name = "Content-Encoding",
Value = compressedAsset.AssetTraitValue,
Quality = Math.Round(1.0 / (length + 1), 12).ToString("F12")
Quality = Math.Round(1.0 / (length + 1), 12).ToString("F12", CultureInfo.InvariantCulture)
};
Log.LogMessage(MessageImportance.Low, " Created Content-Encoding selector for compressed asset '{0}' with size '{1}' is '{2}'", encodingSelector.Value, encodingSelector.Quality, relatedEndpointCandidate.Route);
var endpointCopy = new StaticWebAssetEndpoint
Expand Down
12 changes: 6 additions & 6 deletions src/Tasks/Common/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -940,10 +940,6 @@ You may need to build the project on another operating system or architecture, o
&lt;IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', '{0}'))"&gt;true&lt;/IsTrimmable&gt;</value>
<comment>{StrBegin="NETSDK1212: "}</comment>
</data>
<data name="Net8NotCompatibleWithDev177" xml:space="preserve">
<value>NETSDK1213: Targeting .NET 8.0 or higher in Visual Studio 2022 17.7 is not supported.</value>
<comment>{StrBegin="NETSDK1213: "}</comment>
</data>
<!-- Skipping NETSDK1214 on purpose, as that is "UsingUnsupportedUseUwpFeature" on .NET 8 (see https://github.com/dotnet/sdk/issues/44006) -->
<data name="TargetFrameworkIsNotRecommended" xml:space="preserve">
<value>NETSDK1215: Targeting .NET Standard prior to 2.0 is no longer recommended. See {0} for more details.</value>
Expand Down Expand Up @@ -973,9 +969,13 @@ You may need to build the project on another operating system or architecture, o
<value>NETSDK1221: NuGetPackageRoot property is empty so package Microsoft.Net.Sdk.Compilers.Toolset cannot be used but it is recommended because your MSBuild and SDK versions are mismatched. Ensure you are building with '/restore /t:Build' and not '/t:Restore;Build'.</value>
<comment>{StrBegin="NETSDK1221: "}{Locked="NuGetPackageRoot"}{Locked="Microsoft.Net.Sdk.Compilers.Toolset"}{Locked="'/restore /t:Build'"}{Locked="'/t:Restore;Build'"}</comment>
</data>
<data name="PreferNativeArm64IgnoredForNetCoreApp" xml:space="preserve">
<data name="PreferNativeArm64IgnoredForNetCoreApp" xml:space="preserve">
<value>NETSDK1222: PreferNativeArm64 applies only to .NET Framework targets. It is not supported and has no effect for when targeting .NET Core.</value>
<comment>{StrBegin="NETSDK1222: "}</comment>
</data>
<!-- The latest message added is PreferNativeArm64IgnoredForNetCoreApp. Please update this value with each PR to catch parallel PRs both adding a new message -->
<data name="Net9NotCompatibleWithDev1711" xml:space="preserve">
<value>NETSDK1223: Targeting .NET 9.0 or higher in Visual Studio 2022 17.11 is not supported.</value>
<comment>{StrBegin="NETSDK1223: "}</comment>
</data>
<!-- The latest message added is Net9NotCompatibleWithDev1711. Please update this value with each PR to catch parallel PRs both adding a new message -->
</root>
10 changes: 5 additions & 5 deletions src/Tasks/Common/Resources/xlf/Strings.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/Tasks/Common/Resources/xlf/Strings.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/Tasks/Common/Resources/xlf/Strings.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading