C
C#16mo ago
Tofaa

❔ ✅ Error MSB4018 : The "ResolvePackageAssets" task failed unexpectedly. When building.

Full Stacktrace: Use build tool: C:\Program Files\dotnet\sdk\8.0.100-preview.5.23303.2\MSBuild.dll CONSOLE: MSBuild version 17.7.0-preview-23281-03+4ce2ff1f8 for .NET CONSOLE: Build started 02.08.2023 19:54:44. CONSOLE: Project "C:\Users\tofik\AppData\Local\Temp\Topocix.proj" on node 1 (default targets). CONSOLE: ControllerTarget: CONSOLE: Run controller from C:\Program Files\JetBrains\Rider\r2r\2023.2.0R\53AFC7C05396A24E65EC4950CAD773F\JetBrains.Platform.MsBuildTask.v17.dll 0>Microsoft.NET.RuntimeIdentifierInference.targets(314,5): Message NETSDK1057 : You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy 0>Microsoft.PackageDependencyResolution.targets(266,5): Error MSB4018 : The "ResolvePackageAssets" task failed unexpectedly. NuGet.Packaging.Core.PackagingException: Unable to find fallback package folder 'C:\Users\tofik\AppData\Roaming\Godot\mono\GodotNuGetFallbackFolder'. at NuGet.Packaging.FallbackPackagePathResolver..ctor(String userPackageFolder, IEnumerable1 fallbackPackageFolders) at Microsoft.NET.Build.Tasks.NuGetPackageResolver.CreateResolver(IEnumerable1 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)
Microsoft
.NET and .NET Core official support policy
Learn about .NET and .NET Core support policies, which refer to several technologies including the runtime, ASP.NET Core and Entity Framework Core.
14 Replies
reflectronic
reflectronic16mo ago
NuGet.Packaging.Core.PackagingException: Unable to find fallback package folder 'C:\Users\tofik\AppData\Roaming\Godot\mono\GodotNuGetFallbackFolder'.
sigh godot screwed up your machine's nuget configuration
Tofaa
TofaaOP16mo ago
we love to hear that how would i fix it
reflectronic
reflectronic16mo ago
do you have a %appdata%\NuGet\NuGet.Config
Tofaa
TofaaOP16mo ago
Yes i do checked that
reflectronic
reflectronic16mo ago
is there a fallbackPackageFolders element in there
Tofaa
TofaaOP16mo ago
This is the whole Nuget.Config folder
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
There's this
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<fallbackPackageFolders>
<add key="Godot Offline Packages" value="C:/Users/tofik/AppData/Roaming/Godot/mono\GodotNuGetFallbackFolder" />
</fallbackPackageFolders>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<fallbackPackageFolders>
<add key="Godot Offline Packages" value="C:/Users/tofik/AppData/Roaming/Godot/mono\GodotNuGetFallbackFolder" />
</fallbackPackageFolders>
</configuration>
This ones in "AppData\Roaming\NuGet\config\Godot.Offline.Config" though
reflectronic
reflectronic16mo ago
can you delete Godot.Offline.Config or maybe rename it to something hat doesn't end in .config
Tofaa
TofaaOP16mo ago
done let me reload Now i get [MSB4004] The "ItemGroup" property is reserved, and cannot be modified. C:\Github\Blossom\Blossom\BlossomApp\BlossomApp.csproj at (9:5)
reflectronic
reflectronic16mo ago
can you share what your csproj looks like that seems like an mistake you made in the project file
Tofaa
TofaaOP16mo ago
ive not edited the csproj file at all rider has one sec
reflectronic
reflectronic16mo ago
yes there is a mistake the <ItemGroup> needs to be outside of the <PropertyGroup>
Tofaa
TofaaOP16mo ago
Thank you :D !close
Accord
Accord16mo ago
Closed! Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server