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
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.
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!
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
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