Nuget issue after upgrading project from 5.3 to 5.5

I get NETSDK1064: Package not found error and can’t build. I tried upgrading vs 2022 to the latest. Anyone have a fix for this?

Log:
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
Error occurred while restoring NuGet packages: Access to the path ‘D:\Programs\UE_5.5\Engine\Source\Programs\AutomationTool\Mutable\RunMutableCommandlet\obj\RunMutableCommandlet.Automation.csproj.nuget.g.props’ is denied.

Error List:
Package System.Data.DataSetExtensions, version 4.5.0 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
The “GenerateMSBuildEditorConfig” task failed unexpectedly.
System.UnauthorizedAccessException: Access to the path ‘D:\Programs\UE_5.5\Engine\Source\Programs\AutomationTool\Mutable\RunMutableCommandlet\obj\Development\RunMutableCommandlet.Automation.GeneratedMSBuildEditorConfig.editorconfig’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter…ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
at Microsoft.CodeAnalysis.BuildTasks.GenerateMSBuildEditorConfig.WriteMSBuildEditorConfig()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
The command “D:\Programs\UE_5.5\Engine\Build\BatchFiles\Build.bat InterceptEditor Win64 DebugGame -Project=“D:\Data\UnrealProjects\Intercept55\Intercept.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 6.

Haven’t tried packaging yet with UE 5.5 or VS 2022 17.12 but I also experienced NuGet related issues with the latest VS version with older UE versions (by older I just mean UE 5.4.4) so I’m currently using UE 5.4.4 with 17.8 and there seems to be no issues :innocent:

1 Like

I got past this error by going to the directory ‘D:\Programs\UE_5.5\Engine\Source\Programs\AutomationTool\Mutable\RunMutableCommandlet\obj and making everything not read only.

Still other errors though…

Good find @MarkcusD! I’d recommend in addition also ensuring you’re running the latest VS and DotNet FM if you’re still getting errors. I hope that helps!

I have been having similar problems and took me and entire day to figure it out

so this is how i solved it

install winutil “GitHub - ChrisTitusTech/winutil: Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates” and follow the steps
download revo uninstaller through winutil
uninstall visual studio 2022 and the installer through it, remove all linked registry and packages
install visual studio 2022 again through the official website
have the workloads based on your needs
basic to get started

  • .NET desktop development
  • Desktop development with C++
  • Game development with C++ (make sure unreal Engine Test Adapter is marked)

Install everything

go to your project.sln and open it, run a check on the configuration and ensure everything is good
close your vs 2022
right click your .uproject file and select Generate Visual Studio project files, wait till it finishes
open your project.sln
run the project

should be solved

1 Like

Hey, im using 5.4.4
but this issue isn’t being resolved for me even after trying out your method

I even reinstalled unreal engine 5.4.

and I had used revo uninstaller for removing VS as well as VS installer
and followed the actual Unreal Engine’s Guide on installing VS for 5.4
still keep getting the NuGet Errors saying project is vulnerable as well as like 20+ errors on build

Can you please share the individual components you changed or anything else which was changed? cuz im unable to make it run on UE 5.4.4 or older versions. getting like 20+ errors there all stating some vulnerability

Yes, there’s indeed certain things you need to adjust in order to make VS 2022 17.8 work flawlessly with UE 5.4.4. But you should only be getting a single warning and not any errors. First, verify the correct engine version from Epic Launcher and see if you can reduce the warnings to 1 and errors to 0. And to fix that last issue, you can check out this post: Microsoft.extensions.caching.memory in EpicGames.Horde still use version 6.0.1 .NET that has Denial of Service Vulnerability - #4 by ravendcode