UE 5.5 NuGet errors on new C++ project

To replicate issue, create new C++ project (tested with blank and fps template) and try to build game project. The errors seen below will be present.

To trouble shoot, I’ve already verified my UE 5.5 installation and reinstalled it.

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error (active)	NETSDK1064	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.	RunMutableCommandlet.Automation	C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets	266		
Error (active)	MSB4018	The "GenerateMSBuildEditorConfig" task failed unexpectedly.
System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Epic Games\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.<ExecuteInstantiatedTask>d__26.MoveNext()	RunMutableCommandlet.Automation	C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\Microsoft.Managed.Core.targets	191		
Warning (active)	MSB3101	Could not write state file "obj\Development\RunMutableCommandlet.Automation.csproj.AssemblyReference.cache". Access to the path 'C:\Program Files\Epic Games\UE_5.5\Engine\Source\Programs\AutomationTool\Mutable\RunMutableCommandlet\obj\Development\RunMutableCommandlet.Automation.csproj.AssemblyReference.cache' is denied.	RunMutableCommandlet.Automation	C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets	2413		

Technical Details:
Windows 11
Unreal Version 5.5
Microsoft Visual Studio Community 2022 (64-bit) - Version 17.12.2

I had the same problem a little while back. The advice in this forum post helped me:

https://forums.unrealengine.com/t/possible-5-5-bug-in-runmutablecommandlet-directory/2125220

I removed the Read Only flag from the obj directory mentioned in your last warning, which fixed the build. I think I ended up doing this twice, so maybe look at the advice above for a permanent fix.

1 Like

The solution described in this comment, fixed the issue for me. Thank you @Jobbo751 for providing the link to that issue.

1 Like

Awesome! I’m glad you were able to get that resolved! Good find!