Startup project 'xxx' targets framework '.NETStandard'

asp.net-core asp.net-web-api c# entity-framework-core

Question

I am trying to do Entity Framework Core migration for this project in github - https://github.com/johnph/simple-transaction#WebApi-Endpoints

but hit the above as shown below. I have also set the same project which I do the EF migration as 'startup project'. I tried to search on this error but no avail yet.

enter image description here

I have removed the existing project reference dll, recompiled and re-add the reference. I have also re-install Entity Framework Core and some other Nuget packages. At the end, I can clean and rebuild the whole solution without error.

The only thing I could not get it work is the EF code-first migration which create the database.

1
0
1/19/2020 7:42:39 AM

Accepted Answer

just set your Transaction.WebApi as a startup project and in package manager console select Transaction.Framework for run add-migration enter image description here

1
1/19/2020 8:39:35 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow