I need to create a very simple WinForms C# application that only requires .NET Framework 2.0 to execute properly (due to the fact that the customer isn't allowed to upgrade or connect his computer to the Internet).
On my computer I have Visual Studio (VS) 2005 and VS2019 installed.
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
tags and compiled.Does anybody know what I'm doing wrong?
The problem appears to be that JetBrains dotPeek is not reliable. I tried an .exe-file that JetBrains dotPeek reported was using .NET Framework 3.5, but I had no problems executing it on computer with only Windows 2000 and .NET Framework 2.0 installed. I agree with this answer How to find out which version of the .NET Framework an executable needs to run? that it's better to inspect the .exe-file in Notepad to determine which .NET version it requires.