Skip to content

Re-Bootstrap Source Build to .NET 10.0.100-preview.7.25322.101 #1289

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

Merged
merged 7 commits into from
Jul 8, 2025

Conversation

dotnet-sb-bot
Copy link
Contributor

@dotnet-sb-bot dotnet-sb-bot commented Jun 23, 2025

Re-Bootstrap Source Build to .NET 10.0.100-preview.7.25322.101

Fixes dotnet/source-build#5254

@mthalman
Copy link
Member

  tar: SourceBuildReferencePackages: Cannot stat: No such file or directory
  tar: Exiting with failure status due to previous errors
/__w/1/s/artifacts/prep-bootstrap/buildBootstrapPreviouslySB.csproj(103,5): error MSB3073: The command "tar --numeric-owner -czf /__w/1/s/prereqs/packages/archive/Private.SourceBuilt.Artifacts.Bootstrap.tar.gz *.nupkg *.props *.xml SourceBuildReferencePackages/" exited with code 2.

This is because SourceBuildReferencePackages is no longer included in the artifacts.

@mthalman mthalman enabled auto-merge (squash) June 23, 2025 15:50
@mthalman
Copy link
Member

Getting these errors in the Microsoft build:

ILCompiler.Reflection.ReadyToRun.csproj
    ResolvePackageAssets
        ResolvePackageAssets
            D:\a\_work\1\s\.dotnet\sdk\10.0.100-preview.7.25322.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1047: Assets file 'D:\a\_work\1\s\src\runtime\artifacts\obj\coreclr\ILCompiler.Reflection.ReadyToRun\project.assets.json' doesn't have a target for 'netstandard2.0/linux-musl-x64'. Ensure that restore has run and that you have included 'netstandard2.0' in the TargetFrameworks for your project. You may also need to include 'linux-musl-x64' in your project's RuntimeIdentifiers. [D:\a\_work\1\s\src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\ILCompiler.Reflection.ReadyToRun.csproj]
            D:\a\_work\1\s\.dotnet\sdk\10.0.100-preview.7.25322.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1047: Assets file 'D:\a\_work\1\s\src\runtime\artifacts\obj\coreclr\ILCompiler.Reflection.ReadyToRun\project.assets.json' doesn't have a target for 'netstandard2.0/linux-x64'. Ensure that restore has run and that you have included 'netstandard2.0' in the TargetFrameworks for your project. You may also need to include 'linux-x64' in your project's RuntimeIdentifiers. [D:\a\_work\1\s\src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\ILCompiler.Reflection.ReadyToRun.csproj]
            D:\a\_work\1\s\.dotnet\sdk\10.0.100-preview.7.25322.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1047: Assets file 'D:\a\_work\1\s\src\runtime\artifacts\obj\coreclr\ILCompiler.Reflection.ReadyToRun\project.assets.json' doesn't have a target for 'netstandard2.0/osx-x64'. Ensure that restore has run and that you have included 'netstandard2.0' in the TargetFrameworks for your project. You may also need to include 'osx-x64' in your project's RuntimeIdentifiers. [D:\a\_work\1\s\src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\ILCompiler.Reflection.ReadyToRun.csproj]

@ViktorHofer - Do you know what might be the cause?

@mthalman
Copy link
Member

  <Usages>
    <Usage Id="Microsoft.CodeAnalysis.Analyzers" Version="5.0.0-1.25315.102" File="artifacts/obj/aspnetcore/project-assets-json/obj/Microsoft.AspNetCore.App.Analyzers/project.assets.json" />
    <Usage Id="Microsoft.CodeAnalysis.Analyzers" Version="5.0.0-1.25315.102" File="artifacts/obj/aspnetcore/project-assets-json/obj/Microsoft.AspNetCore.App.CodeFixes/project.assets.json" />
  </Usages>

Now we're getting prebuilts for the same packages but for a newer version than before, which now represents the N-1 version again. I need to re-evaluate my assumptions of the versioning here with Roslyn to understand what's going on.

@mthalman
Copy link
Member

mthalman commented Jun 23, 2025

  <Usages>
    <Usage Id="Microsoft.CodeAnalysis.Analyzers" Version="5.0.0-1.25315.102" File="artifacts/obj/aspnetcore/project-assets-json/obj/Microsoft.AspNetCore.App.Analyzers/project.assets.json" />
    <Usage Id="Microsoft.CodeAnalysis.Analyzers" Version="5.0.0-1.25315.102" File="artifacts/obj/aspnetcore/project-assets-json/obj/Microsoft.AspNetCore.App.CodeFixes/project.assets.json" />
  </Usages>

Now we're getting prebuilts for the same packages but for a newer version than before, which now represents the N-1 version again. I need to re-evaluate my assumptions of the versioning here with Roslyn to understand what's going on.

Apparently I've forgotten my only analysis for a month ago: #400 (comment). The fix for this is to re-bootstrap targeting the SB artifacts from the stage 2 output until dotnet/roslyn#78643 is fixed.

@ViktorHofer
Copy link
Member

@jkoritzinsky for the above question on ILCompiler.Reflection.ReadyToRun

@mthalman
Copy link
Member

mthalman commented Jul 1, 2025

@jkoritzinsky - Can you take a look at the R2R issue? #1289 (comment)

@jkoritzinsky
Copy link
Member

The failure is due to the RID-specific tool packages support triggering on dotnet-pgo.csproj and causing its dependent projects to try to build with a RID that they weren't restored with.

@jkoritzinsky
Copy link
Member

Looking into possible solutions/workarounds now

@mthalman mthalman merged commit d8cf50d into main Jul 8, 2025
11 checks passed
@mthalman mthalman deleted the jun2025-source-build-1750689749 branch July 8, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Remove Microsoft.CodeAnalysis.Analyzers prebuilt
4 participants