When I reference LibGit2Sharp in a project that targets netstandard2.0 or netcoreapp2.1, the lib directory expected by the LibGit2Sharp.dll isn't properly filled. If I target net46 it is. It looks like the NuGet package ships with a .props file that creates the lib directory but there is no equivalent file for netstandard2.0 or netcoreapp2.1.
Steps to Reproduce:
Create a library that references LibGit2Sharp. Set TargetFrameworks to net46;netstandard2.0;netcoreapp2.1.
Run dotnet publish --framework=net46. Note that the lib directory is correctly created.
Run dotnet publish --framework=netstandard2.0 and dotnet publish --framework=netcoreapp2.1 and note that instead of a lib directory, you get a runtimes directory and all the binaries are not in places LibGit2Sharp expects.
When I reference LibGit2Sharp in a project that targets netstandard2.0 or netcoreapp2.1, the lib directory expected by the LibGit2Sharp.dll isn't properly filled. If I target net46 it is. It looks like the NuGet package ships with a .props file that creates the lib directory but there is no equivalent file for netstandard2.0 or netcoreapp2.1.
Steps to Reproduce:
TargetFrameworks
tonet46;netstandard2.0;netcoreapp2.1
.dotnet publish --framework=net46
. Note that thelib
directory is correctly created.dotnet publish --framework=netstandard2.0
anddotnet publish --framework=netcoreapp2.1
and note that instead of alib
directory, you get aruntimes
directory and all the binaries are not in places LibGit2Sharp expects.