C#C
C#3y ago
DaVinki

✅ ResolvePackageAssets is failing because it can't find the NuGet fallback folder

I installed something called Godot portably on a USB which ended up being more invasive than everybody says. Now, none of my projects across all .NET SDKs are failing because it can't find "GodotNuGetFallbackFolder" that Godot created when the USB isn't plugged in. This is happening on all computers I ran Godot on. It's not malware, but it sure sounds like it.

Is there some way to reset it back to what it was? I've reinstalled .NET, ran the repair tool, and I couldn't find much online. To nobody's surprise, deleting the obj and bin of a project and restoring NuGet doesn't fix it. Restoring the NuGet doesn't error when restoring though

  Microsoft.PackageDependencyResolution.targets(266, 5): [MSB4018] The "ResolvePackageAssets" task failed unexpectedly.
NuGet.Packaging.Core.PackagingException: Unable to find fallback package folder 'F:\Godot\Godot_v4.0.1-stable_mono_win64\editor_data\mono\GodotNuGetFallbackFolder'.
   at NuGet.Packaging.FallbackPackagePathResolver..ctor(String userPackageFolder, IEnumerable`1 fallbackPackageFolders)
   at Microsoft.NET.Build.Tasks.NuGetPackageResolver.CreateResolver(IEnumerable`1 packageFolders)
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheWriter..ctor(ResolvePackageAssets task)
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader.CreateReaderFromDisk(ResolvePackageAssets task, Byte[] settingsHash)
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.CacheReader..ctor(ResolvePackageAssets task)
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ReadItemGroups()
   at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore()
   at Microsoft.NET.Build.Tasks.TaskBase.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
Was this page helpful?