I am experiencing the following issue:
- Installed .Net 6 SDK on my development machine and created an executable using Visual Studio 2022 (using .Net 6):
- Installed .Net 6 Runtime on target machine:
However, when I try to run the executable I get this error:
CodePudding user response:
Just to confuse you, Microsoft publishes many different versions of the .NET 6 runtime. There are versions for ASP.NET hosting, Console applications and Windows desktop. You need to ensure that the desktop version is installed.