{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Docs/issues/7730","repository_url":"https://api.github.com/repos/aspnet/Docs","labels_url":"https://api.github.com/repos/aspnet/Docs/issues/7730/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Docs/issues/7730/comments","events_url":"https://api.github.com/repos/aspnet/Docs/issues/7730/events","html_url":"https://github.com/aspnet/Docs/issues/7730","id":343341116,"node_id":"MDU6SXNzdWUzNDMzNDExMTY=","number":7730,"title":"dotnet commands fail if you are not in the correct folder","user":{"login":"KirkMunro","id":3515485,"node_id":"MDQ6VXNlcjM1MTU0ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/3515485?v=4","gravatar_id":"","url":"https://api.github.com/users/KirkMunro","html_url":"https://github.com/KirkMunro","followers_url":"https://api.github.com/users/KirkMunro/followers","following_url":"https://api.github.com/users/KirkMunro/following{/other_user}","gists_url":"https://api.github.com/users/KirkMunro/gists{/gist_id}","starred_url":"https://api.github.com/users/KirkMunro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirkMunro/subscriptions","organizations_url":"https://api.github.com/users/KirkMunro/orgs","repos_url":"https://api.github.com/users/KirkMunro/repos","events_url":"https://api.github.com/users/KirkMunro/events{/privacy}","received_events_url":"https://api.github.com/users/KirkMunro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-21T17:10:20Z","updated_at":"2018-07-21T17:10:20Z","closed_at":null,"author_association":"NONE","body":"This tutorial series includes Visual Studio commands and dotnet CLI commands. If you follow the Visual Studio commands and then later decide you want to try some of the dotnet equivalents (instead of invoking Update-Database, for example), those commands may fail if you are not in the proper folder (the project folder -- if you create this using Visual Studio with a full solution, you will likely have your solution in a separate folder from the project, and by default the Package Manager Console will be in the solution folder, not the project folder where it needs to be for the dotnet commands to work properly). This is only a problem if you try the two different command types as you work through this tutorial. I'm pointing this out because I ran into this very issue, using the Visual Studio steps with PowerShell for the most part, then later trying some of the CLI commands only to see them fail. Also, when you get to the \"Read related data\" step of the tutorial where currently it only offers dotnet CLI steps, those steps will not work, blocking you from progressing unless you figure out a workaround (copy from the end result, which is not ideal, or use Visual Studio to set up scaffolding for the Course model).\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 7a54c97f-ddd4-b041-5e5f-a2df009ace50\n* Version Independent ID: fa488196-1f98-08ea-adcc-17d9dac86727\n* Content: [Razor Pages with Entity Framework Core in ASP.NET Core - Tutorial 1 of 8](https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-2.1&tabs=netcore-cli#create-the-contosouniversity-razor-pages-web-app)\n* Content Source: [aspnetcore/data/ef-rp/intro.md](https://github.com/aspnet/Docs/blob/master/aspnetcore/data/ef-rp/intro.md)\n* Product: **aspnet-core**\n* GitHub Login: @Rick-Anderson\n* Microsoft Alias: **riande**"}}
{"actor":{"display_login":"KirkMunro"}}