Skip to content

Update msbuild to 18.6.3 - #1722

Merged
tmat merged 2 commits into
dotnet:mainfrom
tmat:msbuild
Jun 18, 2026
Merged

tmat merged 2 commits into
dotnet:mainfrom
tmat:msbuild

Conversation

@tmat

@tmat tmat commented Jun 16, 2026 •

Copy link
Copy Markdown
Member

Comment thread eng/Versions.props Resolved
@tmat tmat changed the title Update msbuild to 18.4.0 Update msbuild to 18.6.3 Jun 17, 2026
Co-authored-by: Viktor Hofer <[email protected]>
@tmat
tmat enabled auto-merge (squash) June 17, 2026 18:02
@tmat
tmat merged commit 959b275 into dotnet:main Jun 18, 2026
9 checks passed
@ViktorHofer

Copy link
Copy Markdown
Member

This will introduce a prebuilt in the VMR as that version isn't available in source-build-assets. @dotnet/source-build does it make sense to use PSB here (define the MSBuild dependencies in Version.Details.xml) or should we add the new version to source-build-assets? Those are compile time only dependencies which don't get redistributed.

@tmat
tmat deleted the msbuild branch June 18, 2026 16:02
mthalman added a commit to dotnet/dotnet that referenced this pull request Jun 22, 2026
dotnet/sourcelink#1722 bumped Microsoft.Build* to 18.6.3 and
SystemTextJsonVersion to 10.0.9, which introduced 18 prebuilt packages in
the source-only build leg. Add the corresponding reference packages (plus
their build-closure dependencies) to source-build-assets so the versions
resolve from SBRP instead of leaking as prebuilts.

Microsoft.Build.Utilities.Core 18.6.3 also needs a Microsoft.Win32.Registry
netstandard2.0 ProjectReference for RegistryHive/RegistryView (CS1069), which
the generator under-produces. This is added via a Customizations.props file so
it survives regeneration.

Co-authored-by: Copilot <[email protected]>
mthalman added a commit to dotnet/dotnet that referenced this pull request Jun 22, 2026
The reference packages added for the sourcelink update (dotnet/sourcelink#1722)
fail to compile under source-build. Fixes mirror the existing 8.0.0 reference
packages:

- system.text.encodings.web/10.0.9: suppress CS3011 via Customizations.props, the
  same approach used by system.text.encodings.web/8.0.0. TextEncoder declares
  [CLSCompliant(false)] abstract members with unsafe pointer signatures; under
  TreatWarningsAsErrors this CLS-compliance warning becomes an error.
- system.configuration.configurationmanager/10.0.3: add a Customizations.cs stub for
  System.Security.PermissionSet plus a CompatibilitySuppressions.xml, the same approach
  used by system.configuration.configurationmanager/8.0.0. The netstandard2.0 reference
  assembly uses System.Security.PermissionSet, which is not part of netstandard2.0
  (CS0234); the modern .NET targets get the type from the shared framework.

Co-authored-by: Copilot <[email protected]>
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview6 milestone Jun 23, 2026
@ViktorHofer

ViktorHofer commented Jun 29, 2026 •

Copy link
Copy Markdown
Member

Still interested in guidance here regarding whether to prefer SBRP or PSB in such a case, cc @mthalman @MichaelSimons
I see that arcade i.e. defines them so that they are coming from PSB: https://github.com/dotnet/arcade/blob/c99e4a3ff820236cdcf303a084556adf54a4e8f3/eng/Version.Details.xml#L131-L147

@mthalman

Copy link
Copy Markdown
Member

@ViktorHofer

Copy link
Copy Markdown
Member

I was interested in when to use PSB vs SBRP - in particular for this case. Arcade uses PSB for the msbuild dependencies, not SBRP.

@mthalman

Copy link
Copy Markdown
Member

PSB would be used when the assembly needs to be executed during the build, as opposed to just compiled against for SBRP.

@ViktorHofer

Copy link
Copy Markdown
Member

With SBRP, there's still the manual work of adding the packages to the repository. Is there a strong disadvantage in using the PSB artifact instead that makes us not choose that option?

@mthalman

Copy link
Copy Markdown
Member

In order for anything to exist in PSB, it needs to have been produced as output of the previous release. So that's the limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants