efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Project 'Default' is not found.

Open dvdobrovolskiy opened this issue 10 years ago • 13 comments

Steps to reproduce

Add-Migration XXXXXXX

The issue

Project 'Default' is not found.

Further technical details

No other logs or anything just Project 'Default' is not found.

EF Core version: 1.0.0-rc2-3002702 Operating system: Visual Studio version: 2015

dvdobrovolskiy avatar Jun 24 '16 12:06 dvdobrovolskiy

I've seen this before too. NuGet's Package Manager Console gets into a bad state. Restart VS and try again.

bricelam avatar Jun 24 '16 16:06 bricelam

We are confident this is the issue @bricelam described. Feel free to reply if it is not.

rowanmiller avatar Jun 27 '16 18:06 rowanmiller

Well working with Visual Studio 2015 Enterprise and starting a new Asp.Net Core + EF Core project often feels like dealing with an ol' lawn mower... sometimes it would start like magic sometimes it wouldn't... We then try to proceed tryig to restore everything through dotnet restore cmd expecting it would help solve the issue and Here we go again... So guess we have to deal with it as it seems a bit unstable ... Now as for the Project 'Default' is not found. issue... that once happened to me before I realised the Default Project droplist was blank... Aaaaah no wonder why... just selected the name of the application and ooooh guess what? It worked... :)

Tameshiwari avatar Mar 03 '17 22:03 Tameshiwari

I just got this error all of a sudden too, even after rebooting VS 2015. Everything worked fine before.

webdevguyrg avatar Mar 07 '17 14:03 webdevguyrg

Select a project from the drop down list in NuGet Package Manager Console. I've been seeing this a lot more lately too.

bricelam avatar Mar 07 '17 14:03 bricelam

I reinstalled NuGet PMC and now it works. Go figure.

webdevguyrg avatar Mar 07 '17 15:03 webdevguyrg

Restarting VS worked for me, using VS2017

Kriyainc avatar Mar 07 '18 13:03 Kriyainc

This is still an issue in vs2017, please re-open and fix.

KieranFoot avatar Sep 14 '18 07:09 KieranFoot

@GeorgeBushRekt Could you file an issue on NuGet/Home with the steps to reproduce it?

bricelam avatar Sep 14 '18 18:09 bricelam

I vaguely remember something like moving a project to a different solution folder causes it to fail, but I may be remembering wrong.

bricelam avatar Sep 14 '18 18:09 bricelam

Select Project From Dropdown image

touhidulfahim avatar Sep 16 '18 23:09 touhidulfahim

@bricelam @rowanmiller I'm still experiencing this issue in Visual Studio 2019 (16.4.4). I've tried Git clean and restart VS several times. There is no longer a "Default project" drop down. Pretty stuck on this one. Add-Migration has worked several times, but it just stopped working today.

MelbourneDeveloper avatar Mar 02 '20 22:03 MelbourneDeveloper

Close the Package Manager Console window before restarting VS

bricelam avatar Mar 03 '20 15:03 bricelam