grumbly
grumbly
CC#
Created by grumbly on 5/19/2023 in #help
❔ 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>
3 replies