Files
PS_Dinkey/Dinkey Pro 7.6.1/Samples/C#/Runtime/which project should I use.txt
2026-05-06 07:47:36 +02:00

23 lines
1.1 KiB
Plaintext

Which Project should I use?
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Visual Studio 2002 project will work for any version of Visual Studio from
Visual Studio 2002 to Visual Studio 2019. This project is a Windows Form
application targeting the .NET 4 Framework. However, it can be easily adapted to
target .NET Core or .NET 5 (and higher). The C# code is written in C# version 1.
The Visual Studio 2022 project will work with Visual Studio 2022 (and higher).
It is a Console application targeting .NET 6 and using C# version 10. If you want
to target earlier versions of .NET or C# then use the Visual Studio 2002 project.
The C# code is very similar in both projects. However, C# v8 required changes to
account for possible Null reference exceptions.
Visual Studio 2019 was the first version of VS to support C# v8. However, null
reference warnings are turned off by default, so you will get warnings if you
compile the VS2022 C# code.
On the other hand in Visual Studio 2022 null reference warnings are turned on by
default so you will get warnings if you compile the VS2002 C# code.
Whichever project you use always read the "readme" file for important instructions.