You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resources path is set based on the path of the current assembly.
The problem is that the assembly directory has a different number of
components, depending on whether the Configuration environment variable
is set or not.
Therefore, the previous code, that depended on the number of subdirs,
would fail if there is no value for the Configuration environment
variable.
The new code looks for the occurrence of a well-known string in the path
and bases the path of the test resources off that position.
It is still pretty sub-optimal, but I think it's a bit less sub-optimal
than it was.
Tested in the following ways:
- run dotnet test on one test from the command line on Windows;
- click on "Run Test" from Visual Studio Code.
Fixeslibgit2#1629.
0 commit comments