install maui in enviorment that have no internet failed

Dani_S 2,726 Reputation points
2023-11-01T08:02:01.06+00:00

Hi,

I installed offline vs 17.5.4 in enviorment that have no internet.

I open brand new maui app and there are errors of:

Severity Code Description Project File Line Suppression State

Error NU1301 Unable to load the service index for source https://api.nuget.org/v3/index.json. MauiApp1 C:\Users\danis\source\repos\MauiApp1\MauiApp1\MauiApp1.csproj 1

I tried to install this without sucess:

dotnet workload install maui --source "https://api.nuget.org/v3/index.json"

Why?

Thanks in advance

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,870 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
    2023-11-02T05:18:39.3066667+00:00

    Hello,

    There is an official solution to this error message in NuGet Error NU1301.

    Consult the error message for more details. You may need to inform the source owner as there might be issues that only they can address. Alternatively, you can try removing the source from the configuration retry again. The configured source may not be necessary for your build.

    Therefore, you could disabled this source for this particular project with dotnet nuget disable source <source_name>, if the source was not necessary.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful