C#C
C#3y 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]

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>
Was this page helpful?