Repository navigation
[main] Source code updates from dotnet/sdk - #6161
Conversation
[[ commit created by automation ]]
…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]>
The package is part of the shared framework for .NETCoreApp targets, so only reference it for netstandard2.0 and .NET Framework. Co-authored-by: Copilot <[email protected]>
|
Note PRs from original repository included in this codeflow update:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
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]>
…MSB4057 errors" This reverts commit 24b6006.
This reverts commit 0b59567.
This reverts commit 7eddc4b.
…ETCoreApp" This reverts commit 40ed472.
…ng entirely" This reverts commit 748968a.
…uild" This reverts commit b9b8a19.
This reverts commit d75b0f8.
|
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. |
|
Caution 🛑 Codeflow Paused — Conflict detectedA conflict was detected when trying to update this PR with changes from build 💡 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:
ℹ️ To resolve the conflicts, please follow these steps:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
|
Note PRs from original repository included in this codeflow update:
💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance. |
|
@copilot fix the pruning error here:
|
Head branch was pushed to by a user without write access
Fixed in 8ca5ac6 by removing the redundant |
|
@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]>
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]>
Do we need to update some signing metadata? @mthalman @marcpopMSFT |
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