##[error]src/Acme.Blazor/Acme.Blazor.csproj(0,0): Error NU1301: Failed to retrieve information about 'Volo.Abp.AspNetCore.Components.Server.LeptonXTheme' from remote source 'https://acme-pkgs.visualstudio.com/_packaging/xxxxxxxx-53c4-41ff-b7a1-237e09ce737e/nuget/v3/flat2/volo.abp.aspnetcore.components.server.leptonxtheme/index.json'. /home/vsts/work/1/s/src/Acme.Blazor/Acme.Blazor.csproj : error NU1301: Failed to retrieve information about 'Volo.Abp.AspNetCore.Components.Server.LeptonXTheme' from remote source 'https://acme-pkgs.visualstudio.com/_packaging/xxxxxxxx-53c4-41ff-b7a1-237e09ce737e/nuget/v3/flat2/volo.abp.aspnetcore.components.server.leptonxtheme/index.json'. ##[error]src/Acme.Blazor/Acme.Blazor.csproj(0,0): Error NU1301: Failed to retrieve information about 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' from remote source 'https://acme-pkgs.visualstudio.com/_packaging/xxxxxxxx-53c4-41ff-b7a1-237e09ce737e/nuget/v3/flat2/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json'. /home/vsts/work/1/s/src/Acme.Blazor/Acme.Blazor.csproj : error NU1301: Failed to retrieve information about 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' from remote source 'https://acme-pkgs.visualstudio.com/_packaging/xxxxxxxx-53c4-41ff-b7a1-237e09ce737e/nuget/v3/flat2/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json'.
Failed to restore /home/vsts/work/1/s/src/Acme.Blazor/Acme.Blazor.csproj (in 14.43 sec). 20 of 23 projects are up-to-date for restore.
Build FAILED.
I got this error when run the Pull Request's validation on pipeline, but it's okay on my local machine. I'm wondering why it find LeptonXTheme on my nuget source acme-pkgs instead of ABP Commercial NuGet Source. How can I fix this issue?
3 Answer(s)
-
0
Do you have Nuget.Config in the source code used in your build server ? Your NuGet.Config file must include abp.io nuget source specific to your account. It should be something like this;
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> <!-- {ABP_COMMERCIAL_NUGET_SOURCE} --> </packageSources> </configuration>
-
0
This is my nuget.config, it already had the nuget source as you said:
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> <add key="BlazoriseMyGet" value="https://www.myget.org/F/blazorise/api/v3/index.json" /> <add key="ABP Commercial NuGet Source" value="https://nuget.abp.io/f05545eb-5dae-xxxx-xxxx-4f921b3bdf07/v3/index.json" /> <add key="acme" value="https://acme.pkgs.visualstudio.com/_packaging/acme/nuget/v3/index.json" /> <add key="Acme Helper" value="https://Acme-public.pkgs.visualstudio.com/Acme.Helpers/_packaging/Acme/nuget/v3/index.json" /> </packageSources> </configuration>
-
0
hi
You can set
verbosity
todetailed
to check the logs.dotnet restore -v d
This is the full download link of a package you mention https://nuget.abp.io/f05545eb-5dae-xxxx-xxxx-4f921b3bdf07/v3/package/volo.abp.aspnetcore.components.server.leptonxtheme/2.3.2/volo.abp.aspnetcore.components.server.leptonxtheme.2.3.2.nupkg
you should also be able to download it from your DevOps server. if not, then there might be a firewall rule in your network.