I'm using a build server to run dotnet publish
on my .NET project to package the project and the dependencies.
When I run dotnet publish
using
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.6" />
in my .csproj file, the application runs dotnet publish as expected. However, when I make the change to increment the AspNetCore version to Version="2.0.7"
it results in a:
/usr/share/dotnet/sdk/2.1.104/NuGet.targets(104,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json.
[/{file-path}/dotnetproj.csproj]
/usr/share/dotnet/sdk/2.1.104/NuGet.targets(104,5): error : An error occurred while sending the request.
[/{file-path}/dotnetproj.csproj]
/usr/share/dotnet/sdk/2.1.104/NuGet.targets(104,5): error : Problem with the SSL CA cert (path? access rights?)
[/{file-path}/dotnetproj.csproj]
(This is an example, if I make any modifications to the packages listed in the .csproj file, e.g. add a new package, it results in the same errors.) . I'm running this command through Jenkins.
Is there a way for me to correctly run the incremented version? Does it involve updating / recreating certificates for the build server? The server is running ubuntu.
Any help on this issue will be greatly appreciated!