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 安裝即可解決