nuget does not recognize my project

Cliff Gold 0 Reputation points
2023-08-24T03:11:24.2766667+00:00

I am using Visual Studio 17.7.1. I changed which distribution of Python I was using, From Anaconda to Python.org. Now, I can't get any packages via nuget. I have tried:

  1. Creating a new project.
  2. Updating the nuget json file.
  3. Logging on as Admin

The nuget console does not show any projects in the pulldown. The error I get is Project 'Default' is not found. And the project name pulldown is empty. I have not tried a full uninstall - reinstall of Visual Studio, but that is my next option.

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-08-24T09:37:34.2733333+00:00

    Hi @Cliff Gold

    Welcome to Microsoft Q&A! 

    What is your project type? How did you change the distribution of Python from Anaconda to Python.org?

    What command are you using when getting the error: Project 'Default' is not found

    Please update your VS2022 to the latest version with Visual Studio Installer.

    Then, launch VS > open the project > go to Solution Explorer > right-click on project node > Set as Startup Project. 

    Then, check that the “Default project” drop-down displays properly. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.