Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

An error ‘could not find any project in [SolutionFolder]’ occurs when running the command ‘dotnet remove [ProjectFilePath] package xxx’ under solution path #14801

Copy link
Copy link

Description

@v-luzh
Issue body actions

NuGet Product Used

dotnet.exe

Product Version

.NET SDK Version: 10.0.300-preview.26126.103

Worked before?

It is a regression since it doesn’t repro on VS Main/11405.173 + NuGet Client Dev/7.3.0.51.

Impact

It's more difficult to complete my work

Repro Steps & Context

Note:

  1. Repro rate: 100%.
  2. The command 'dotnet add [ProjectFilePath] package xxx' in step 2 can be run successfully.

Repro Steps:

  1. Create a solution folder (called CMD in this instance) and cd to the folder in ‘Developer Command Prompt for VS’.
  2. Run the command one by one as below.
dotnet new console -n MyApp 
dotnet restore --use-lock-file MyApp\MyApp.csproj 
dotnet new classlib -n MyLib 
dotnet add MyLib\MyLib.csproj package NUnit --version 4.4.0 
dotnet add MyApp\MyApp.csproj reference MyLib\MyLib.csproj
dotnet restore MyApp\MyApp.csproj 
dotnet add MyApp\MyApp.csproj package NUnit --version 4.4.0 
dotnet restore MyApp\MyApp.csproj 
  1. Run the command below to remove the package:
    dotnet remove MyApp\MyApp.csproj package NUnit

Expected Result:

No error occurs and the package is removed successfully.

Actual Result:

An error ‘could not find any project’ occurs as the red line in the screenshot below.

Image
Reactions are currently unavailable

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.