.netcore在進行dotnet pack -c Release打包從網上下的庫的時候報錯問題

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章