zivid / zivid-csharp-samples

Code samples for the usage of a Zivid 3D camera in C#
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

"Error CS8179 Predefined type 'System.ValueTuple'2 is not defined or imported" when building AutomaticNetworkConfigurationForCameras #92

Open fabienrobotics opened 1 month ago

fabienrobotics commented 1 month ago

Using Visual Studio 2022 and latest examples (2.13.1) on Windows machine. After following the tutorial for C# samples, I found out that the method static (string, string) ParseOptions(string[] args) from AutomaticNetworkConfigurationForCameras.cs needs the project of the same name to be upgraded for .NET Framework 4.8, at least. Otherwise, the error "Error CS8179 Predefined type 'System.ValueTuple'2 is not defined or imported" might be displayed. The .NET Framework 4.5.2 is the default target, when cloning examples.

image

The fix is from this thread. Just let me know if anything.