Skip to content

Fix build warnings in MSBuildDeviceIntegration project#11980

Open
simonrozsival wants to merge 1 commit into
mainfrom
dev/simonrozsival/fix-msbuilddeviceintegration-build-warnings
Open

Fix build warnings in MSBuildDeviceIntegration project#11980
simonrozsival wants to merge 1 commit into
mainfrom
dev/simonrozsival/fix-msbuilddeviceintegration-build-warnings

Conversation

@simonrozsival

@simonrozsival simonrozsival commented Jul 4, 2026

Copy link
Copy Markdown
Member

This PR fixes the following warning:

MSBuildDeviceIntegration net10.0 succeeded with 1 warning(s) (2.3s) → bin/TestDebug/MSBuildDeviceIntegration/net10.0/MSBuildDeviceIntegration.dll
    /.../src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/InlineData.cs(7,7): warning CS0105: The using directive for 'System.Globalization' appeared previously in this namespace

Copilot AI review requested due to automatic review settings July 4, 2026 13:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes a duplicate using System.Globalization; in InlineData.cs which was producing CS0105 when the MSBuildDeviceIntegration test project links in the shared Utilities sources, and it tightens CI enforcement by no longer grandfathering warnings for MSBuildDeviceIntegration.csproj.

Changes:

  • Remove the duplicate using System.Globalization; to eliminate CS0105 in InlineData.cs.
  • Remove the MSBuildDeviceIntegration.csproj exemption from _AllowProjectWarnings so warnings are no longer permitted for that project.
Show a summary per file
File Description
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/InlineData.cs Removes the duplicate System.Globalization using that triggered CS0105.
Directory.Build.props Stops allowing warnings in MSBuildDeviceIntegration.csproj, ensuring future warnings are treated as errors on CI.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@simonrozsival simonrozsival added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants