Skip to content

Conversation

@rolfbjarne
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

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 all instances of the NO_SYSTEM_DRAWING conditional compilation define throughout the source code, which was never set and therefore always evaluated to false. The removal makes the previously conditionally compiled code for System.Drawing types unconditional.

  • Removes all #if !NO_SYSTEM_DRAWING and corresponding #endif directives
  • Makes using System.Drawing; statements unconditional across all affected files
  • Exposes System.Drawing type conversion operators and methods that were previously conditionally compiled

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/SpriteKit/SKKeyframeSequence.cs Removes conditional around using System.Drawing;
src/ObjCRuntime/Dlfcn.cs Moves using System.Drawing; before #if !COREBUILD block and removes the NO_SYSTEM_DRAWING conditional
src/Foundation/NSObject2.cs Removes conditionals around using System.Drawing; and SizeF/RectangleF/PointF conversion code
src/CoreGraphics/CGSize.cs Removes conditionals around using System.Drawing; and SizeF conversion operators
src/CoreGraphics/CGRect.cs Removes conditionals around using System.Drawing; and RectangleF conversion operators
src/CoreGraphics/CGPoint.cs Removes conditionals around using System.Drawing; and PointF conversion operators
src/CoreGraphics/CGEventTypes.cs Removes conditional around using System.Drawing;
src/AppKit/NSOpenGLContext.cs Removes conditionals around using System.Drawing; and SwapRectangle property

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #d0b7272] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@rolfbjarne rolfbjarne enabled auto-merge (squash) January 6, 2026 07:56
@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #d0b7272] Build passed (Build packages) ✅

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #d0b7272] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d0b7272] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d0b7272] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #d0b7272] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [CI Build #d0b7272] Tests on macOS arm64 - Mac Sequoia (15) failed ❌

Failed tests are:

  • monotouch-test

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [CI Build #d0b7272] Tests on macOS arm64 - Mac Tahoe (26) failed ❌

Failed tests are:

  • monotouch-test

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [CI Build #d0b7272] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 2 tests failed, 115 tests passed.

Failures

❌ dotnettests tests (Multiple platforms)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.XcodeProjectTests.BuildMultiTargeting: 'dotnet build' failed with exit code 1
      Full command: /Users/builder/azdo/_work/1/s/macios/builds/downloads/dotnet-sdk-10.0.102-s...

Html Report (VSDrops) Download

❌ monotouch tests (tvOS)

1 tests failed, 8 tests passed.

Failed tests

  • monotouch-test/tvOS - simulator/Release (interpreter): Failed

Html Report (VSDrops) Download

Successes

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: d0b7272aff85c96a6a0fc130c5d4971f654c95fa [PR build]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants