offline install ue 5.1 nuget error un1301

Anyone with a solution to the UN1303 NuGet error for an offline build of UE5.1 in Visual Studio 2022?

The problem just started with UE5 release and up.

unable to load the service index for source https //api.nuget.org/v3/indeal enx.json

sorry,i not speak english.
you can look https://blog.csdn.net/qq_35793394/article/details/124248544
###1.关闭VS
删除C:\Users\xxx\AppData\Roaming\NuGet下的整个nuget.config文件

2、以管理员模式开启powershell 运行以下命令

reg add “HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client” /v DisabledByDefault /t REG_DWORD /d 0 /f /reg:32
reg add “HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client” /v DisabledByDefault /t REG_DWORD /d 0 /f /reg:64
reg add “HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client” /v Enabled /t REG_DWORD /d 1 /f /reg:32
reg add “HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client” /v Enabled /t REG_DWORD /d 1 /f /reg:64

The UN1303 NuGet error can occur when Visual Studio is unable to locate or download a required NuGet package during a build. This can happen if the NuGet package source is not configured correctly or if the package is not available in the configured sources.

To resolve this issue, try the following steps:

  1. Verify that the NuGet package source is configured correctly in Visual Studio. To do this, go to “Tools” > “Options” > “NuGet Package Manager” > “Package Sources” and ensure that the package source you need is listed and enabled. If the package source is not listed, add it by clicking the “+” icon and entering the source URL.
  2. Clean and rebuild the solution. In Visual Studio, go to “Build” > “Clean Solution” and then “Build” > “Rebuild Solution”. This will ensure that all required packages are downloaded and installed.
  3. If the above steps do not resolve the issue, try manually downloading and installing the required NuGet package. You can do this by searching for the package on the NuGet website (https://www.nuget.org/) and downloading the .nupkg file. Then, in Visual Studio, right-click on the project that requires the package and select “Manage NuGet Packages”. In the “Browse” tab, click on the gear icon and select “Add Package”. Browse to the downloaded .nupkg file and select it to install the package.
1 Like

If the problem is fixed please let us know the solution, thank you !

I want to build UE5 in offline mode, report shows a lot of Nuget packages are missing.

Find a computer that can compile normally, and import all the files in its C:\Users\UserName.nuget to your offline computer to solve this problem.

1 Like

Find a computer that can compile normally, and import all the files in its C:\Users\UserName.nuget to your offline computer to solve this problem.

1 Like