1、当从网上下载dotnet core的库,进行dotnet pack -c Release或dotnet build -c Release的时候提示错误问题
错误信息:
Microsoft.Build.Tasks.Git.targets(20,5): error : Unable to locate repository containing directory错误,
在.csproj文件中找到这块,删除即可
<ItemGroup Condition=" '$(Configuration)' == 'Release' ">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta-63127-02" PrivateAssets="All" />
</ItemGroup>
2、ubuntu 18.04在进行dotnet pack -c Release或dotnet build -c Release时提示
x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found错误时,可以通过
sudo apt-get install libcurl3 安装即可解决