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

[6.0] Tools: Check for unsupported OS-specific TFMs #26094

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

bricelam
Copy link
Contributor

@bricelam bricelam commented Sep 17, 2021

The new OS-specific TFMs introduced in .NET 6 (net6.0-android, net6.0-ios, etc.) currently aren't compatible with dotnet-ef and the PMC commands. This adds additional checking like the ones we already have for unsupported TFMs (Xamarin.Android, Xamarin.iOS, etc.) and throws a better error message.

Fixes #25938

Note, another issue (#7152) tracks making them actually work when we can.

Customer impact

Without this, customers will continue getting obscure errors about missing .deps.json files.

Regression

Yes, kind of. While the OS-specific TFMs are new to .NET 6, the experience of working with Android and iOS projects has regressed from .NET 5.

Testing

Manually verified the new experience on VS 2022 Preview 4. We have not invested in automated functional testing for dotnet-ef and the PMC commands since this made the build system overly complex and was very flakey in EF6 (but we do have some unit tests covering the parts we can).

Risk

Low. Non-OS-specific TFMs, and the Windows TFM are allowed, so only OSes new to .NET 6 are blocked.

@bricelam bricelam requested a review from a team September 17, 2021 22:12
@bricelam bricelam requested a review from Pilchie September 18, 2021 15:34
@bricelam bricelam changed the title Tools: Check for unsupported OS-specific TFMs [6.0] Tools: Check for unsupported OS-specific TFMs Sep 18, 2021
@bricelam
Copy link
Contributor Author

@Pilchie

@Pilchie
Copy link
Member

Pilchie commented Sep 20, 2021

Approved for EFCore 6.

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.

Throw a better exception when using EF Core tooling with MAUI
3 participants