Skip to content

Conversation

dotnet-maestro[bot]
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Mar 29, 2025

This pull request updates the following dependencies

From https://github.com/dotnet/msbuild

…0328.17

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.14.0-preview-25177-05 -> To Version 17.14.0-preview-25178-17
@ghost ghost added Area-CodeFlow untriaged Request triage from a team member labels Mar 29, 2025
@ViktorHofer
Copy link
Member

The failures look related. cc @carlossanlop @rainersigwald

Jason Zhai and others added 2 commits March 31, 2025 19:08
…darc-release/9.0.3xx-3f4a1dd1-ab01-4a37-86b4-c2c5a7bc3491
.22

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.14.0-preview-25177-05 -> To Version 17.14.0-preview-25181-22
…0401.10

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.14.0-preview-25177-05 -> To Version 17.14.1-preview-25201-10
@Forgind
Copy link
Contributor

Forgind commented Apr 2, 2025

I'm seeing:

obj\Debug\net9.0\staticwebassets.build.json : error : MissingMethodException: Method not found: '!!0 System.Text.Json.JsonSerializer.Deserialize(System.ReadOnlySpan`1<Byte>, System.Text.Json.Serialization.Metadata.JsonTypeInfo`1<!!0>)'. [C:\h\w\9B43088E\t\dotnetSdkTests\0o2fvlya.ets\ItCanRunAnApp---11F653B3\ItCanRunAnApp---11F653B3.csproj]

I saw ViktorHofer assigned you, @carlossanlop, are you handling this?

@carlossanlop
Copy link
Contributor

The System.Text.Json error does not look familiar or related to the changes we've been making in maintenance-packages. @rainersigwald do you know if the changes from maintenance-packages merged in main in msbuild are being flowed into this 9.0.3xx branch?

I also see a warning stating that netcoreapp2.1 is out of support but I don't think we're treating warnings as errors.

warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. 

@rainersigwald
Copy link
Member

both main and 9.0.3xx builds should have the maintenance-packages changes reverted at the moment.

dotnet-maestro bot added 2 commits April 3, 2025 05:02
…0402.7

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.14.0-preview-25177-05 -> To Version 17.14.2-preview-25202-07
…0404.3

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.14.0-preview-25177-05 -> To Version 17.14.3-preview-25204-03
@akoeplinger
Copy link
Member

The latest commit contains the maintenance-packages changes again. We're seeing the same issue in #48212

@Forgind
Copy link
Contributor

Forgind commented Apr 7, 2025

Can you link to the pr(s) to revert the updates? I see dotnet/msbuild#11684 as making them, and I don't see anything reverting that

…0407.8

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.14.0-preview-25177-05 -> To Version 17.14.4-preview-25207-08
@ViktorHofer
Copy link
Member

@carlossanlop now that the work in #48034 is completed, can you please take a look at this dependency flow for 9.0.3xx? I assume we need to backport a subset of the changes done in the runtime PR.

@carlossanlop
Copy link
Contributor

The latest maestro update included @rainersigwald 's change in this flow: dotnet/msbuild#11677

There are test failures. I'm investigating.

@carlossanlop
Copy link
Contributor

I see failures only in the FullFramework tests job: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1008785&view=logs&j=b69c0128-beae-536a-0344-1c918351dbc7&t=60696cef-0589-543b-3dbb-b76b5b65d586&l=334

One failure is can't find Microsoft.CodeAnalysis.Razor.Compiler Version 9.0.0.0:

[xUnit.net 00:08:40.74]     EndToEnd.Tests.ProjectBuildTests.ItCanRunAnAppUsingTheWebSdk [OUTPUT] 》CSC : warning CS8032: An instance of analyzer Microsoft.CodeAnalysis.Razor.Compiler.Analyzers.ComponentParameterNullableWarningSuppressor cannot be created from C:\h\w\B05809B5\p\d\sdk\9.0.300-ci\Sdks\Microsoft.NET.Sdk.Razor\source-generators\Microsoft.CodeAnalysis.Razor.Compiler.dll : Method 'get_SupportedSuppressions' in type 'Microsoft.CodeAnalysis.Razor.Compiler.Analyzers.ComponentParameterNullableWarningSuppressor' from assembly 'Microsoft.CodeAnalysis.Razor.Compiler, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' does not have an implementation.. [C:\h\w\B05809B5\t\dotnetSdkTests\4hzcddrc.4kn\ItCanRunAnApp---11F653B3\ItCanRunAnApp---11F653B3.csproj]
[xUnit.net 00:08:40.74]     EndToEnd.Tests.ProjectBuildTests.ItCanRunAnAppUsingTheWebSdk [OUTPUT] 》CSC : warning CS8784: Generator 'RazorSourceGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'MissingMethodException' with message 'Method not found: 'Microsoft.CodeAnalysis.IncrementalValueProvider`1<System.Collections.Immutable.ImmutableArray`1<!!0>> Microsoft.CodeAnalysis.IncrementalValueProviderExtensions.Collect(Microsoft.CodeAnalysis.IncrementalValuesProvider`1<!!0>)'.'. [C:\h\w\B05809B5\t\dotnetSdkTests\4hzcddrc.4kn\ItCanRunAnApp---11F653B3\ItCanRunAnApp---11F653B3.csproj]

Another failure is can't find System.Text.Json methods, both are methods that use span as arguments, so it could be related to System.Memory. Found two variants:

SDK Resolver Failure: "The SDK resolver "Microsoft.DotNet.MSBuildSdkResolver" failed while attempting to resolve the SDK "Microsoft.VisualStudio.JavaScript.SDK/1.0.1948920". Exception: "System.MissingMethodException: Method not found: 'Void System.Text.Json.Utf8JsonReader..ctor(System.ReadOnlySpan`1<Byte>, Boolean, System.Text.Json.JsonReaderState)'.

and

[xUnit.net 00:05:07.74]     Microsoft.NET.Publish.Tests.GivenThatWeWantToPublishASingleFileApp.Target_after_AfterSdkPublish_executes(sdk: "Microsoft.NET.Sdk.Web") [OUTPUT] 》CSC : warning CS8784: Generator 'RazorSourceGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'MissingMethodException' with message 'Method not found: 'Microsoft.CodeAnalysis.IncrementalValueProvider`1<System.Collections.Immutable.ImmutableArray`1<!!0>> Microsoft.CodeAnalysis.IncrementalValueProviderExtensions.Collect(Microsoft.CodeAnalysis.IncrementalValuesProvider`1<!!0>)'.'. [C:\h\w\B05809B5\t\dotnetSdkTests\y44sxjci.zid\Target_after_---F4B0511B\HelloWorldWithSubDirs.csproj]

@carlossanlop carlossanlop requested a review from a team as a code owner April 8, 2025 19:47
Copy link
Contributor

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

I pushed a commit for these two tasks so they are forced to consume the toolset version of System.Text.Json like they do in main:

  • src/RazorSdk/Tasks/Microsoft.NET.Sdk.Razor.Tasks.csproj
  • src/StaticWebAssetsSdk/Tasks/Microsoft.NET.Sdk.StaticWebAssets.Tasks.csproj

@carlossanlop
Copy link
Contributor

@v-wuzhai the 2nd failure from my comment above looks related to the commit you pushed 728a9c6 maybe we should revert that?

@ericstj
Copy link
Member

ericstj commented Apr 8, 2025

Are we sure these are running on a VS that has the updated MSBuild and bindingRedirects? What ensures that?

This reverts commit 728a9c6.
@rainersigwald
Copy link
Member

Are we sure these are running on a VS that has the updated MSBuild and bindingRedirects? What ensures that?

The tests are on an MSBuild/VS that lags, and that's fairly intentional.

Reference specific old versions of these packages
at compile time, which will be moved forward to
the VS- delivered versions at runtime. This avoids
pinning them to the old versions for the whole
repo, allowing MSBuild to move forward without
breaking SDK.

Partial backport of 9cf989b.
@rainersigwald
Copy link
Member

@dsplaisted I (manually) backported your 9cf989b to unstick this.

<PackageReference Include="Microsoft.Build.Utilities.Core" ExcludeAssets="Runtime" />
<PackageReference Include="System.Reflection.Metadata" VersionOverride="$(SystemReflectionMetadataVersion)" Condition="'$(TargetFramework)'=='net472'" />
<PackageReference Include="System.Text.Json" Condition="'$(TargetFramework)'=='net472'" />
<PackageReference Include="System.Text.Json" VersionOverride="$(SystemTextJsonToolsetPackageVersion)" />
Copy link
Member

Choose a reason for hiding this comment

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

In main, this reference is in a netframework conditioned itemgroup. Should it be here as well?

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 think it matters much since this should get dropped on core but might as well make the merge as easy as possible.

@rainersigwald rainersigwald requested a review from a team as a code owner April 15, 2025 15:43
@dotnet-maestro dotnet-maestro bot merged commit 6fd1b5c into release/9.0.3xx Apr 15, 2025
35 checks passed
@dotnet-maestro dotnet-maestro bot deleted the darc-release/9.0.3xx-3f4a1dd1-ab01-4a37-86b4-c2c5a7bc3491 branch April 15, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-CodeFlow untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants