Closed
Description
Reproduction steps
- Clone the repository from the WSL command line
- Open the folder in Visual Studio Code
- Try to run one test (click on "Run Test" over any test)
Alternatively, after cloning, run dotnet restore
and run any test with dotnet test
, for example:
$ dotnet test LibGit2Sharp.Tests//LibGit2Sharp.Tests.csproj --filter LibGit2Sharp.Tests.UnstageFixture.CanUnstageSourceOfARename
Expected behavior
The test runs, and either passes or fails.
Actual behavior
The test always fails, cannot open the testrepo_wd
directory. Example:
System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Users\<my username>\source\github\LibGit2Sharp.Tests\Resources\testrepo_wd'.
The directory is not found because the path is wrong. It is missing the git repo name. The correct one would be:
C:\Users\<my username>\source\github\libgit2sharp\LibGit2Sharp.Tests\Resources\testrepo_wd
Note that this is fixed if the environment variable Configuration
is set to release
, for some reason.
Version of LibGit2Sharp (release number or SHA1)
0a9c84d (current HEAD)
Operating system(s) tested; .NET runtime tested
Windows 10 Enterprise 1803
.NET Core 2.1.403
Metadata
Metadata
Assignees
Labels
No labels