Draft
Conversation
The XA1024 warning fired for any `.config` file in publish output, causing false positives for files like `nuget.config`. Since .config files are already excluded from publish output and the .NET 6 transition is long past, this warning is no longer necessary. Fixes #10122 Agent-Logs-Url: https://github.com/dotnet/android/sessions/544b704c-92b2-4c05-a9d4-c5b582c74e47 Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix false positive warning XA1024 for nuget.config
Remove XA1024 warning for May 1, 2026
.config files
….NET 11" Agent-Logs-Url: https://github.com/dotnet/android/sessions/c5db2e6c-0570-4b44-8e11-41291a3ce67c Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Member
|
@copilot I think the NativeAOT case may have trimmer warnings, and we should skip the assertion: |
Agent-Logs-Url: https://github.com/dotnet/android/sessions/2a573bbb-4e38-406d-ad4a-9404cc9f1e0a Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Contributor
Author
... Wrapped the assertion with |
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.
XA1024 fires for any file with a
.configextension, producing false positives for files likenuget.config. The warning is also redundant —.configfiles are already removed from publish output by the<ResolvedFileToPublish Remove="..."/>above it. The .NET 6 transition period is long past.Changes
Microsoft.Android.Sdk.AssemblyResolution.targets— Remove the<AndroidWarning>block for XA1024Resources.resx/Resources.Designer.cs— Remove the XA1024 resource stringBuildTest2.cs— FlipBuildBasicApplicationCheckConfigFilesassertion to verify XA1024 is not emittedxa1024.md/index.md/TOC.yml— Mark XA1024 as removed