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

Update .NET SDK to 10.0.100-alpha.1.24553.6 #58776

Closed
wants to merge 11 commits into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 4, 2024

Updates the .NET SDK to version 10.0.100-alpha.1.24553.6, which also updates the .NET runtime from version 10.0.0-alpha.1.24507.22 to version 10.0.0-alpha.1.24552.2.

This pull request was auto-generated by GitHub Actions.

Update .NET SDK to version 10.0.100-alpha.1.24553.6.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot requested review from wtgodbe and a team as code owners November 4, 2024 12:12
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Nov 4, 2024
Copy link
Member

@BrennanConroy BrennanConroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undo submodules?

@sebastienros
Copy link
Member

undo submodules?

Sorry, this is my git client, I usually catch it in time. Will fix.

@sebastienros sebastienros force-pushed the update-dotnet-sdk-10.0.100-alpha.1.24553.6 branch from b5d1656 to f30edff Compare November 4, 2024 18:13
@sebastienros
Copy link
Member

This is the result of https://github.com/dotnet/runtime/pull/109467/files

However XUnit should handle that now, so I will "try" (not even sure that's possible) to update the version we are using.
xunit/xunit#3021

@sebastienros
Copy link
Member

@javiercn
Copy link
Member

javiercn commented Nov 5, 2024

@MackinnonBuck

@@ -29,7 +29,7 @@ public void Encrypt_Decrypt_RoundTrips()
byte[] decipheredtext = encryptor.Decrypt(new ArraySegment<byte>(ciphertext), aad);

// Assert
Assert.Equal(plaintext, decipheredtext);
Assert.Equal(plaintext.AsSpan(), decipheredtext.AsSpan());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sebastienros - why is this change necessary now? Both expected and actual are byte[]. Why do they need to be cast to span?

@eerhardt eerhardt force-pushed the update-dotnet-sdk-10.0.100-alpha.1.24553.6 branch from 7a8ae19 to 0f9d339 Compare November 6, 2024 00:56
@eerhardt
Copy link
Member

eerhardt commented Nov 6, 2024

@dotnet/source-build - the pre-built leg is failing:

.packages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24551.1/tools/SourceBuild/AfterSourceBuild.proj(81,5): error : (NETCORE_ENGINEERING_TELEMETRY=AfterSourceBuild) 1 new pre-builts discovered! Detailed usage report can be found at /__w/1/s/artifacts/sb/prebuilt-report/baseline-comparison.xml.
See https://aka.ms/dotnet/prebuilts for guidance on what pre-builts are and how to eliminate them.
Package IDs are:
Microsoft.NETCore.App.Ref.9.0.0-rc.2.24473.5

Any guidance on how to address this?

@mthalman
Copy link
Member

mthalman commented Nov 7, 2024

@dotnet/source-build - the pre-built leg is failing:

.packages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24551.1/tools/SourceBuild/AfterSourceBuild.proj(81,5): error : (NETCORE_ENGINEERING_TELEMETRY=AfterSourceBuild) 1 new pre-builts discovered! Detailed usage report can be found at /__w/1/s/artifacts/sb/prebuilt-report/baseline-comparison.xml.
See https://aka.ms/dotnet/prebuilts for guidance on what pre-builts are and how to eliminate them.
Package IDs are:
Microsoft.NETCore.App.Ref.9.0.0-rc.2.24473.5

Any guidance on how to address this?

I'm pretty sure this requires that we have a .NET 9.0 targeting pack defined in SBRP. But we're going to want to wait until after this 10.0 SDK gets updated to reference the 9.0 GA version.

@MichaelSimons
Copy link
Member

This can be marked as an allowed prebuilt IMO for the time being until we get the 9.0 GA targeting packs in SBRP.

@MackinnonBuck
Copy link
Member

Looks like the project template test failures are caused by static web asset failures. I was able to repro this locally by running the project template tests:

Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(242,5): warning : Endpoints not found for related asset: C:\aspnetcore\.packages\Other\microsoft.aspnetcore.identity.ui\10.0.0-dev\staticwebassets\V5\css\site.css [C:\aspnetcore\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\AspNet.kd5bo3mwu5zn\AspNet.kd5bo3mwu5zn.csproj]
Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(242,5): error MSB4018: The "ApplyCompressionNegotiation" task failed unexpectedly. [C:\aspnetcore\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\AspNet.kd5bo3mwu5zn\AspNet.kd5bo3mwu5zn.csproj]
Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(242,5): error MSB4018: System.InvalidOperationException: Endpoints not found for related asset: C:\aspnetcore\.packages\Other\microsoft.aspnetcore.identity.ui\10.0.0-dev\staticwebassets\V5\css\site.css [C:\aspnetcore\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\AspNet.kd5bo3mwu5zn\AspNet.kd5bo3mwu5zn.csproj]
Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(242,5): error MSB4018:    at Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation.Execute() [C:\aspnetcore\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\AspNet.kd5bo3mwu5zn\AspNet.kd5bo3mwu5zn.csproj]
Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(242,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Execute() [C:\aspnetcore\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\AspNet.kd5bo3mwu5zn\AspNet.kd5bo3mwu5zn.csproj]
Microsoft.NET.Sdk.StaticWebAssets.Compression.targets(242,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\aspnetcore\src\ProjectTemplates\test\Templates.Tests\bin\Release\net10.0\TestTemplates\AspNet.kd5bo3mwu5zn\AspNet.kd5bo3mwu5zn.csproj]

cc @javiercn

@javiercn
Copy link
Member

javiercn commented Nov 7, 2024

@MackinnonBuck thanks.

I'll take a look at it tomorrow first thing in the morning.

@javiercn
Copy link
Member

javiercn commented Nov 8, 2024

I'm getting the following error. Any idea how to get past it?

LINK : fatal error C1900: Il mismatch between 'P1' version '20231109' and 'P2' version '20230904' [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj]
LINK : fatal error LNK1257: code generation failed [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj]
LINK : fatal error C1900: Il mismatch between 'P1' version '20231109' and 'P2' version '20230904' [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj]
LINK : fatal error LNK1257: code generation failed [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj]
LINK : fatal error C1007: unrecognized flag '-ArmArchitectureLevel8' in 'p2' [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj]
LINK : fatal error LNK1257: code generation failed [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj]
LINK : fatal error C1900: Il mismatch between 'P1' version '20231109' and 'P2' version '20230904' [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHand
ler.vcxproj]
LINK : fatal error LNK1257: code generation failed [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj]
LINK : fatal error C1900: Il mismatch between 'P1' version '20231109' and 'P2' version '20230904' [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHand
ler.vcxproj]
LINK : fatal error LNK1257: code generation failed [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj]
LINK : fatal error C1007: unrecognized flag '-ArmArchitectureLevel8' in 'p2' [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj]
LINK : fatal error LNK1257: code generation failed [D:\work\aspnetcore\src\Servers\IIS\AspNetCoreModuleV2\InProcessRequestHandler\InProcessRequestHandler.vcxproj]

@javiercn
Copy link
Member

javiercn commented Nov 8, 2024

@MackinnonBuck can you get me the binlog?

@@ -122,11 +122,13 @@
<GenerateStaticWebAssetEndpointsPropsFile
StaticWebAssets="@(V4Assets)"
StaticWebAssetEndpoints="@(V4AssetEndpoints)"
PackagePathPrefix="staticwebassets/V4"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know what changed to break this? Is this a sign of some underlying bug?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know yet, but I plan to look at it on Monday, at a quick glance, the endpoints in the package are incorrect too (we will have to service that).

It doesn't currently fail I think because we have a process to "upgrade" older packages and define endpoints and the endpoints end up being generated as part of the user build.

Not sure what the difference is between the build in the repo and the end user build that causes it to fail here. In the end, it's a bug in the package.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed an issue to track

Copy link
Contributor Author

Superseded by #58862.

@github-actions github-actions bot closed this Nov 11, 2024
@github-actions github-actions bot deleted the update-dotnet-sdk-10.0.100-alpha.1.24553.6 branch November 11, 2024 12:12
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Nov 11, 2024
@sebastienros
Copy link
Member

I think we should restore this branch and get it in a mergeable state, otherwise we'll need to apply the same changes (and there are lots of them) in the new PR. We can keep the other PR and it will hopefully just work when this one is in. @eerhardt @MackinnonBuck

@eerhardt
Copy link
Member

I think we should restore this branch and get it in a mergeable state, otherwise we'll need to apply the same changes (and there are lots of them) in the new PR. We can keep the other PR and it will hopefully just work when this one is in. @eerhardt @MackinnonBuck

Agreed. I suggest closing the new PR and re-open this PR.

@javiercn
Copy link
Member

We can't reopen the original one because the branch got deleted

@sebastienros
Copy link
Member

The branch was recreated (or force pushed) I believe by Eric. We can see it: https://github.com/dotnet/aspnetcore/branches/all?query=update-dotnet-sdk-10.0.100-alpha.1.24553.6&lastTab=overview

We may just need a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework Type: Dependency Update 🔼
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants