I intend to build simple Winform application just to allow user to automate their file creation and store the last filled form in a file to keep it for next run. thus, I'm not interested in creating installer for this simple Winform application. I expected to only compile it to .exe and let it run on other computers.
I develop the application using VS2019 community with target .net 4.6.1 It won't run on computer with Windows 10 with only .net framework 4.8
We are not able to install framework 4.6.1 since it says an earlier version of .net framework is already installed.
Should I recompile my application with target .net framework 4.8?
Can't I compile my application to run on any computer which at least has 4.6.1 or newer? without installer.
(I don't really understand the .net framework backward compatibility truly mean)
my application uses:
library of user32.dll for SetForegroundWindow function
to create .ini file
Finally it works. Even compiled to target .NET 4.6.1 still work on .NET 4.8 computer actually. The issue is because my application is targeting to another application using interope COM interface, while the license is not sufficient for the user to allow COM interface. we notice it when we finally create a pure simple windows form, then step-by-step compiling while adding each feature.
Sorry Every Body for this silly case. And my special apologize to evry1falls for spending your time.
I'm thinking to change this Question or delete it. because it is not the issue at all
The Actual Issue is: I created Windows Form Application starting from a blank Project. And I don't know that the .NET Unhandled Exception is not activated by default. When created from Windows Form Project Template, the Unhandled Exception message shown.
I created another Question about it: Here