Previously I had the 2019 and 2022 versions of VS community on my pc. After uninstalling the 2019 version, and opening my projects in the 2022 version, I was asked to update to the 4.8 framework. Ok, I set 4.7.2, done.
But the project does not start because the only possible choice in the Project Property / Startup Object is “Sub Main”. But I don’t have a Sub Main. My Startup Object in all my project was a Form01 when I worked in VS 2019.
If I change the “Enable framework application” checkbox, vs2022 prompts “start object must be a Form with Enable framework application option selected".
But I can’t set a Form as start object, given that the only option in startup object textbox is Sub Main.