-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Build Failed at the "Create the initial migration" step #1093
Comments
I have the same issue - help would be appriciated |
I had this problem, but got it to build with a small change to the Add-Migration command in package manager. Note: I'm Using DotNetCore v2.2, and the EF-Core version matches (v2.2) There are two ways to do this the one I used is the first... Add-Migration InitialCreate -StartupProject Blogging.Migrations.Startup this works because it will use the default project you selected to find the DbContext, and the Startup Project to run the commands. Method 2: this should combine all the concepts from method 1 into a single command line, and it shouldn't matter whats selected as the default project in the Package Manager Console. |
I have the same issue. Altough I ensured my "Default project" is set to "Blogging.Model". So unfortunately none of your methods worked for me. |
i can't get this working .. like others i think the referencing is wrong or running into .net standard 2 vs .netcoreapp 3 issues ... Please fix these samples |
@liquidboy Please refer to the solution from this issue #1242 |
Duplicate of #933 |
I did exactly the same as this tutorial but I found this in the Error List:
Error NU1201 Project Blogging.Migrations.Startup is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project Blogging.Migrations.Startup supports: netcoreaSeverity Code Description Project File Line Suppression State
Error NU1201 Project Blogging.Migrations.Startup is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project Blogging.Migrations.Startup supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1) Blogging.Model C:\Users\johnn\source\repos\Blogging\Blogging.Model\Blogging.Model.csproj 1
pp2.1(.NETCoreApp,Version=v2.1) Blogging.Model
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: