C
C#14mo ago
grumbly

❔ nuget confusion - error: field not found?

Hi, I'm trying to build a project, but getting this error. I'm so lost when it comes to the C# ecosystem. For context, I'm more familiar with g++/make/cmake tooling.
C:\Program Files\dotnet\sdk\7.0.302\NuGet.targets(156,5): Field not found: 'System.Func`2.Item2'."
"C:\Users\<user>\projects\testproj\testproj.csproj" (Restore target) (1) ->
(Restore target) ->
C:\Program Files\dotnet\sdk\7.0.302\NuGet.targets(156,5): error : Field not found:
'System.Func`2.Item2'. [C:\Users\<user>\projects\testproj\testproj.csproj]
C:\Program Files\dotnet\sdk\7.0.302\NuGet.targets(156,5): Field not found: 'System.Func`2.Item2'."
"C:\Users\<user>\projects\testproj\testproj.csproj" (Restore target) (1) ->
(Restore target) ->
C:\Program Files\dotnet\sdk\7.0.302\NuGet.targets(156,5): error : Field not found:
'System.Func`2.Item2'. [C:\Users\<user>\projects\testproj\testproj.csproj]
I don't know what System.Func2.Item2 means. How would I make progress on debugging this? Here is my proj contents
<Project Sdk="Godot.NET.Sdk/4.0.3">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
</PropertyGroup>
</Project>
<Project Sdk="Godot.NET.Sdk/4.0.3">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
</PropertyGroup>
</Project>
2 Replies
grumbly
grumbly14mo ago
The issue was that the Godot.NET.Sdk package does not work with .net SDK 7.0. Problem solved.
Accord
Accord14mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.