Hi there,
I program small Apps for our Machines that are not complicated and do simple Tasks.
The previous Apps were coded in VS2019 and they work in all Windows Versions.
Now I started a new Project in VS2022 and the first thing was that I could not choose what Framework I wanted. So far I didn't bother so I choose .net7.0.
I coded what I wanted, and tested it on my PC (Windows 10 Pro 5 years old) and it worked. Now I put the .exe file on my USB-Stick, pasted the file to our machine PC with Windows 11 and it won't start.
Nothing worked, Compatibility mode or other options did not do the trick.
I tried something else. I exported a former Project with "target Framework" 4.8, deleted all code, and pasted every line of the new project into the "new" project. That exe file worked on Windows 11 and I don't know why.
Also, we tried compiling the whole project on a Windows 11 PC, and that worked also.
Can you guys maybe help me how to solve that problem because I don't want to copy my whole project every time to the Pc of my Colleague?
Kind Regards
I program small Apps for our Machines that are not complicated and do simple Tasks.
The previous Apps were coded in VS2019 and they work in all Windows Versions.
Now I started a new Project in VS2022 and the first thing was that I could not choose what Framework I wanted. So far I didn't bother so I choose .net7.0.
I coded what I wanted, and tested it on my PC (Windows 10 Pro 5 years old) and it worked. Now I put the .exe file on my USB-Stick, pasted the file to our machine PC with Windows 11 and it won't start.
Nothing worked, Compatibility mode or other options did not do the trick.
I tried something else. I exported a former Project with "target Framework" 4.8, deleted all code, and pasted every line of the new project into the "new" project. That exe file worked on Windows 11 and I don't know why.
Also, we tried compiling the whole project on a Windows 11 PC, and that worked also.
Can you guys maybe help me how to solve that problem because I don't want to copy my whole project every time to the Pc of my Colleague?
Kind Regards