Show a warning when the PMC tools are used with a platform-specific app#38000
Open
Show a warning when the PMC tools are used with a platform-specific app#38000
Conversation
Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com> Agent-Logs-Url: https://github.com/dotnet/efcore/sessions/20243169-49f2-4777-a5a3-2f3d1b2b00ef
Copilot created this pull request from a session on behalf of
AndriySvyryd
March 25, 2026 19:07
View session
…, inline helper Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com> Agent-Logs-Url: https://github.com/dotnet/efcore/sessions/55267e08-667f-4ff4-8181-dd67b66dae0a
Co-authored-by: AndriySvyryd <6539701+AndriySvyryd@users.noreply.github.com> Agent-Logs-Url: https://github.com/dotnet/efcore/sessions/d37e057a-ba63-4672-a8ec-808574c75bc9
There was a problem hiding this comment.
Pull request overview
This PR aligns the EF Core Package Manager Console (PMC) tools behavior with the dotnet ef CLI by warning when the startup project targets a platform-specific TFM (e.g. net8.0-windows10.0.19041.0) or has a TargetPlatformIdentifier, since design-time tooling can behave unexpectedly in these scenarios.
Changes:
- Emit a PMC
Write-Warningfor platform-specific startup projects detected viaTargetPlatformIdentifieror aTargetFrameworkcontaining-. - Preserve the existing error behavior for non-Windows
TargetPlatformIdentifiervalues.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow up to #37868 for the Package Manager Console tools.