Skip to content

[main] Source code updates from dotnet/sdk - #6161

Merged
wtgodbe merged 27 commits into
mainfrom
darc-main-b075e0a9-6385-4b37-8206-c2392d98c011
Apr 23, 2026
Merged

wtgodbe merged 27 commits into
mainfrom
darc-main-b075e0a9-6385-4b37-8206-c2392d98c011

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.

This pull request brings the following source code changes

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

Diff the source with this PR branch
darc vmr diff --name-only https://github.com/dotnet/sdk:e259547ae0d38e7273966e3ff12ae381f4d263bf..https://github.com/dotnet/dotnet:darc-main-b075e0a9-6385-4b37-8206-c2392d98c011

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team April 21, 2026 02:14
mthalman and others added 4 commits April 21, 2026 09:03
…build

The previous commit conditionally excluded the NuGet packages entirely
during source-build, causing CS0246 errors. Instead, keep the references
but use a child VersionOverride element with a Condition so the pin only
applies when not in source-build mode, allowing the version to be lifted
from Directory.Packages.props during source-build.

Co-authored-by: Copilot <[email protected]>
Source-built NuGet packages only support .NETCoreApp, so exclude
netstandard2.0 and .NET Framework TFMs from TemplateEngine projects
during source-build to avoid NU1202 incompatibility errors.

Co-authored-by: Copilot <[email protected]>
In source-build, netstandard2.0 is excluded so the reason for disabling
transitive pinning no longer applies. Re-enable it so transitive NuGet
deps also get lifted properly.

Co-authored-by: Copilot <[email protected]>
@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

mthalman and others added 10 commits April 22, 2026 07:47
The TargetFrameworkIdentifier condition doesn't work because it's empty
in the outer multi-targeting dispatch where NuGet restore runs. Use
DotNetBuildSourceOnly instead since that's the actual trigger: in
source-build, netstandard2.0 is stripped and the package is provided
by the shared framework.

Co-authored-by: Copilot <[email protected]>
FilterTargetFrameworks() does not deduplicate, and in source-build
NetMinimum == NetCurrent, so after stripping netstandard2.0 we end up
with net11.0;net11.0 which causes NETSDK1046 errors. Strip the
duplicate when NetMinimum equals NetCurrent.

Co-authored-by: Copilot <[email protected]>
…errors

Replace ';netstandard2.0' instead of 'netstandard2.0' to consume the preceding
semicolon, preventing a trailing ';' that creates invalid inner build evaluations
with TargetFramework='net11.0;' where no SDK targets are imported.

Co-authored-by: Copilot <[email protected]>
@mthalman

Copy link
Copy Markdown
Member

I've reverted a bunch of commits that were added to compensate for netstandard2.0 TFM in templating. That's being fixed with dotnet/sdk#54041. We'll wait to merge until that gets merged in.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Caution

🛑 Codeflow Paused — Conflict detected

A conflict was detected when trying to update this PR with changes from build 311468 of https://github.com/dotnet/sdk/tree/e259547ae0d38e7273966e3ff12ae381f4d263bf.

💡 You can either merge the PR without getting these new updates or manually flow them in and resolve the conflicts so that automated codeflow can resume for this PR.

The conflicts in the following files need to be manually resolved:

  • src/TemplateEngine/Microsoft.TemplateEngine.Edge/Microsoft.TemplateEngine.Edge.csproj
    🔍 View file in dotnet/sdk vs VMR

ℹ️ To resolve the conflicts, please follow these steps:

  1. Clone the current repository
    git clone https://github.com/dotnet/dotnet
    cd dotnet
  2. Make sure your darc is up-to-date
    (version 1.1.0-beta.26222.1 or higher)
    # Linux / MacOS
    ./eng/common/darc-init.sh
    # or on Windows
    .\eng\common\darc-init.ps1
  3. Run from repo's git clone and follow the instructions provided by the command to stage the conflict locally
    darc vmr resolve-conflict --subscription b80ccdd7-504a-4efb-b58b-d6480d0a64d9
    This should apply the build 311468 with sources from e259547
  4. Resolve the conflicts, commit & push the changes
  5. Once pushed, the Codeflow verification check will turn green.
    If not, a new build might have flown into the PR and you might need to run the command above again.

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

@wtgodbe
wtgodbe enabled auto-merge (squash) April 22, 2026 21:24
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team April 22, 2026 21:30
@wtgodbe

wtgodbe commented Apr 23, 2026

Copy link
Copy Markdown
Member

@copilot fix the pruning error here:

ateEngine.Edge.csproj : error NU1510: Warning As Error: PackageReference Microsoft.Extensions.Logging.Abstractions will not be pruned. Consider removing this package from yourg;isSecret=false;isOutput=true]/__w/1/s/src/sdk/artifacts/log/Release

auto-merge was automatically disabled April 23, 2026 04:21

Head branch was pushed to by a user without write access

Copilot AI commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

@copilot fix the pruning error here:

ateEngine.Edge.csproj : error NU1510: Warning As Error: PackageReference Microsoft.Extensions.Logging.Abstractions will not be pruned. Consider removing thi...

Fixed in 8ca5ac6 by removing the redundant Microsoft.Extensions.Logging.Abstractions PackageReference from Microsoft.TemplateEngine.Edge.csproj, which resolves the NU1510 pruning warning-as-error in this project.

@wtgodbe
wtgodbe enabled auto-merge (squash) April 23, 2026 04:22
Copilot AI requested a review from wtgodbe April 23, 2026 04:23
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team April 23, 2026 04:24
@ViktorHofer

ViktorHofer commented Apr 23, 2026 •

Copy link
Copy Markdown
Member

@mthalman repos don't target NetMinimum for source-build anymore. Everything is now solely based on NetCurrent. EDIT: The change got reverted here, disregard.

Microsoft.Extensions.Logging.Abstractions is part of the shared framework
for .NETCoreApp targets, so the explicit PackageReference is only needed
for .NET Framework targets. Condition it the same way as System.Text.Json.

Co-authored-by: Copilot <[email protected]>
mthalman and others added 2 commits April 23, 2026 09:12
Logging.Abstractions only moved inbox with net11.0, so NetMinimum (e.g.
net10.0) still needs the package reference. Use IsTargetFrameworkCompatible
to exclude only for net11.0+, matching the pattern used in aspnetcore.

Co-authored-by: Copilot <[email protected]>
@wtgodbe

wtgodbe commented Apr 23, 2026

Copy link
Copy Markdown
Member

D:\a_work\1\s\src\sdk\artifacts\toolset\11.0.0-ci\Sign.proj(74,5): error SIGN004: Signing 3rd party library 'D:\a_work\1\s\src\sdk\artifacts\tmp\Release\ContainerSigning\1536\tools/net10.0/any/Verify.XunitV3.dll' with Microsoft certificate 'MicrosoftDotNet500'. The library is considered 3rd party library due to its copyright: 'Copyright 2025. All rights reserved'.
D:\a_work\1\s\src\sdk\artifacts\toolset\11.0.0-ci\Sign.proj(74,5): error SIGN004: Signing 3rd party library 'D:\a_work\1\s\src\sdk\artifacts\tmp\Release\ContainerSigning\2012\tools/net10.0/any/FluentAssertions.dll' with Microsoft certificate 'MicrosoftDotNet500'. The library is considered 3rd party library due to its copyright: 'Copyright Dennis Doomen 2010-2025'.

Do we need to update some signing metadata? @mthalman @marcpopMSFT

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team April 23, 2026 17:43
@wtgodbe
wtgodbe disabled auto-merge April 23, 2026 20:16
@wtgodbe
wtgodbe merged commit 1a76ed9 into main Apr 23, 2026
16 checks passed
@wtgodbe
wtgodbe deleted the darc-main-b075e0a9-6385-4b37-8206-c2392d98c011 branch April 23, 2026 20:16
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.

6 participants