dotnet / dotnet/sdk

`dotnet reference remove` doesn't work correctly when a relative path to a directory is passed

Open
#54,491 0 comments 0 reactions 0 assignees View on GitHub
Area-CLI untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Version: 10.0.300

Repro steps:
```ps1
dotnet new classlib -o lib
dotnet new console -o app
cd app
dotnet reference add ..\lib
dotnet reference remove ..\lib
```

Got: ```Project reference `..\..\lib\lib.csproj` could not be found.``` (Notice the `..\..` which is wrong, it should be just one level `..`)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.