dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.63k stars 1.96k forks source link

Create database step fails for UWP apps, redirects back to this same page #2121

Open arcadiogarcia opened 4 years ago

arcadiogarcia commented 4 years ago

The Package Manager Console steps for creating the database fail on UWP projects. The Add-Migration command asks the user to follow a link which is UWP specific, but that page seems to be gone and redirects back to this page. If the information in this page is not meant to apply to UWP apps, we should specify it and redirect that link somewhere else.

PM> Add-Migration InitialCreate Startup project 'BookShellfManagedApp' is a Universal Windows Platform app. This version of the Entity Framework Core Package Manager Console Tools doesn't support this type of project. For more information on using the EF Core Tools with UWP projects, see https://go.microsoft.com/fwlink/?linkid=858496


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

arcadiogarcia commented 4 years ago

It seems like it would be more useful if VS suggested https://go.microsoft.com/fwlink/?linkid=2034705 / https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/powershell#other-target-frameworks which actually describes how to solve the issue.

If https://go.microsoft.com/fwlink/?linkid=858496 is only used in this context, maybe it could be updated to point to this other page rather than changing the documentation?

arcadiogarcia commented 4 years ago

I think @ajcvickers might be the owner of the link, what are your thoughts on this?

ajcvickers commented 4 years ago

@arcadiogarcia We will fix it.

maxmin88 commented 4 years ago

Still not fixed. What happened to https://docs.microsoft.com/en-us/ef/core/get-started/uwp/getting-started.

This was a UWP EF SQLite with migrations example. I saved the link but not the whole page. I wish I had saved the whole example locally :(