Repository navigation
Update msbuild to 18.6.3 - #1722
Conversation
Co-authored-by: Viktor Hofer <[email protected]>
|
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. |
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]>
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]>
|
Still interested in guidance here regarding whether to prefer SBRP or PSB in such a case, cc @mthalman @MichaelSimons |
|
This was already addressed in dotnet/dotnet@e14aa12#diff-b38df83bd311458adb67f2ed9accf1ebb7676283d88c9c427777d597506f90bf |
|
I was interested in when to use PSB vs SBRP - in particular for this case. Arcade uses PSB for the msbuild dependencies, not SBRP. |
|
PSB would be used when the assembly needs to be executed during the build, as opposed to just compiled against for SBRP. |
|
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? |
|
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. |
Note: https://github.com/dotnet/sdk/blob/main/src/Layout/redist/minimumMSBuildVersion should be updated to 18.6.3