-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Document .NET 11 NU1703 warning for deprecated MonoAndroid package assets #54108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Copilot
wants to merge
5
commits into
main
Choose a base branch
from
copilot/fix-nu1703-warning
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+57
−0
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5fd7fc0
Initial plan
Copilot 03a69e4
Add .NET 11 NU1703 breaking change documentation
Copilot 037ad31
Apply suggestions from code review
gewarren a3d4f88
Fix typo in compatibility documentation
gewarren 5205889
Update docs/core/project-sdk/msbuild-props.md
gewarren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
54 changes: 54 additions & 0 deletions
54
docs/core/compatibility/sdk/11/nu1703-deprecated-monoandroid-framework.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| title: "Breaking change: NU1703 warning for packages that use deprecated MonoAndroid framework assets" | ||
| description: "Learn about the breaking change in .NET 11 where NuGet restore emits NU1703 when a package uses deprecated MonoAndroid framework assets." | ||
| ms.date: 06/01/2026 | ||
| ai-usage: ai-assisted | ||
| --- | ||
|
|
||
| # NU1703 warning for packages that use deprecated MonoAndroid framework assets | ||
|
|
||
| NuGet restore now emits NU1703 when an Android project targets .NET 11 | ||
| or later and resolves package assets from the deprecated MonoAndroid | ||
| framework folder. | ||
|
|
||
| ## Version introduced | ||
|
|
||
| .NET 11 Preview 5 | ||
|
|
||
| ## Previous behavior | ||
|
|
||
| Previously, NuGet restore silently resolved MonoAndroid assets when a package did not provide `net6.0-android` or later assets. | ||
|
|
||
| ## New behavior | ||
|
|
||
| Starting in .NET 11, NuGet restore emits NU1703 when a package resolves | ||
| to deprecated MonoAndroid assets for Android projects that target | ||
| .NET 11 or later and use `SdkAnalysisLevel` `11.0.100` or later. | ||
|
|
||
| > Package 'PackageName' 1.0.0 uses the deprecated MonoAndroid framework instead of 'net6.0-android' or later. Consider upgrading to a newer version of this package or contacting the package author. | ||
|
|
||
| ## Type of breaking change | ||
|
|
||
| This change can affect [source compatibility](../../categories.md#source-compatibility). | ||
|
|
||
| ## Reason for change | ||
|
|
||
| To help identify packages that might not work correctly with modern | ||
| Android TFMs, NuGet now warns when restore selects deprecated | ||
| MonoAndroid assets. | ||
|
|
||
| For more information, see [NuGet.Client PR #7229](https://github.com/NuGet/NuGet.Client/pull/7229). | ||
|
|
||
| ## Recommended action | ||
|
|
||
| To resolve this warning, update to a package version that provides | ||
| `net6.0-android` or later assets. | ||
|
|
||
| If no update exists: | ||
|
|
||
| - You can suppress NU1703 for a specific package or for the project. | ||
| - To opt out of this warning wave, you can set `SdkAnalysisLevel` to a value below `11.0.100`. | ||
|
|
||
| ## Affected APIs | ||
|
|
||
| None. | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.