Skip to content
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

Add PlatformNotSupported exception for APIs/platforms not supported in .NET Core #1683

Closed
mairaw opened this issue Aug 17, 2017 · 6 comments · Fixed by #6770
Closed

Add PlatformNotSupported exception for APIs/platforms not supported in .NET Core #1683

mairaw opened this issue Aug 17, 2017 · 6 comments · Fixed by #6770
Labels
area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. 🏁 Release: .NET Core 2.x Identifies work items for the .NET Core 2.x releases cross-platform Indicates issues or PRs that relate to content applicable to both Framework and Core. doc-update Update outdated articles Pri1 Indicates issues/PRs that are high priority Pri3 Indicates issues/PRs that are low priority

Comments

@mairaw
Copy link
Contributor

mairaw commented Aug 17, 2017

APIs might have a different behavior depending on the platform in .NET Core and might throw the PlatformNotSupported exception. We need to call that out in the Exception section of the APIs impacted.

I remember seeing spreadsheets flowing around with that information @terrajobst. Do we have the latest version of that @terrajobst?

/cc @bartonjs

@mairaw
Copy link
Contributor Author

mairaw commented Nov 29, 2017

For now, wiki has the information on PNSE: https://github.com/dotnet/corefx/wiki/ApiCompat

@jeffschwMSFT
Copy link
Member

Including @weshaggard as he may have more insight into api level differences across platform.

@mairaw mairaw transferred this issue from dotnet/docs Jan 24, 2019
@dotnet-bot dotnet-bot added the untriaged New issue has not been triaged by the area owner label Jan 24, 2019
@mairaw mairaw added Pri1 Indicates issues/PRs that are high priority 🏁 Release: .NET Core 2.x Identifies work items for the .NET Core 2.x releases cross-platform Indicates issues or PRs that relate to content applicable to both Framework and Core. doc-update Update outdated articles and removed untriaged New issue has not been triaged by the area owner labels Jan 24, 2019
@mairaw
Copy link
Contributor Author

mairaw commented Nov 22, 2019

The corefx wiki is gone now. Was the source for the apicompat page saved anywhere?

@karelz

@mairaw
Copy link
Contributor Author

mairaw commented Dec 4, 2019

Thanks @ViktorHofer for your help recovering that info. I copied the old contents of api compat into a gist for now:
https://gist.github.com/mairaw/c5ea693b956b584f44c3423e29e1f0c6

@govert
Copy link

govert commented Jan 20, 2021

This really is a huge complication when moving from .NET Framework -> .NET 5. Everything compiles without warning (even though the TargetPlatform is known at compile time) and runs fine until a runtime exception. The API documentation gives no indication of what parts of an API might not be supported.
My example today is the CodeDom compiler support, which is not supported in .NET Core see dotnet/runtime#18768

The documentation for CodeDomCompiler.CompileAssemblyFromSource gives no indication that this feature is not supported on .NET Core / .NET 5.0, whether there are alternatives or whether adjacent APIs might work.

@terrajobst
Copy link
Member

@govert

Good point. I have filed this user story, which would also ensure that shows up in the docs.

@eiriktsarpalis eiriktsarpalis added the area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. label Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Meta Concerns something that extends across runtime area boundaries, for example, IDisposable. 🏁 Release: .NET Core 2.x Identifies work items for the .NET Core 2.x releases cross-platform Indicates issues or PRs that relate to content applicable to both Framework and Core. doc-update Update outdated articles Pri1 Indicates issues/PRs that are high priority Pri3 Indicates issues/PRs that are low priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants