-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
System.Drawing.Common breaking change #25367
Conversation
I'll go ahead and publish this, and once the migration examples are ready, I'll add those. |
docs/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only.md
Outdated
Show resolved
Hide resolved
docs/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only.md
Outdated
Show resolved
Hide resolved
docs/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! We can update it to add code examples to have something published.
|
||
## New behavior | ||
|
||
Starting in .NET 6, the platform analyzer emits compile-time warnings when referencing code is compiled for non-Windows operating systems. In addition, the following run-time exception is thrown unless you set a configuration option: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we mention that in .NET 7 the plan is to no longer support this not even with the runtime config switch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs style guide says not to discuss future plans in documentation. @tdykstra @BillWagner How strictly do we adhere to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. The reason why I think in this case would be valuable, it is because we want to encourage customers to move off System.Drawing.Common for xplat and don't want this to be a surprise when we release 7.0.
Contributes to #25257
Preview link.