Skip to content

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

Merged
bricelam merged 1 commit intodotnet:release/6.0from
bricelam:tpm
Sep 20, 2021
Merged

[6.0] Tools: Check for unsupported OS-specific TFMs#26094
bricelam merged 1 commit intodotnet:release/6.0from
bricelam:tpm

Conversation

@bricelam
Copy link
Copy Markdown
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
Comment thread src/dotnet-ef/Properties/Resources.resx Outdated
@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
Copy Markdown
Contributor Author

@Pilchie

@Pilchie
Copy link
Copy Markdown
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