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
Fix matching logger path against parent directories (#1917)
Using a regex match with a full path results can result in the regex
matching parent directories of the source directory. If the code is
being compiled in a subdirectory with a full path that includes `net5.0`
(such as `dotnet5.0`), multiple loggers can match. Multiple loggers
matching will produce an invalid msbuild command, failing the build.
To reproduce:
mkdir dotnet5.0
git clone https://github.com/dotnet/source-build
cd source-build
git checkout master
./build.sh
In my case, sourcelink fails to build with this error message:
MSBUILD : error MSB1008: Only one project can be specified.
Switch: /home/omajid/dotnet5.0/source-build/packages/restored/microsoft.dotnet.arcade.sdk/5.0.0-beta.20426.4/tools/net472/Microsoft.DotNet.Arcade.Sdk.dll
Fixes: #1914
0 commit comments