I do not have any solution ready for this. What you might try, but that’s really very experimental and speculative:
Open the .uproject file in text editor and remove the content from your Modules section in the project - this could prevent the attempt to build the project at all…
As I said: backup everything before doing this, I did never try this on my own.
{ "FileVersion": 3, "EngineAssociation": "4.XX", "Category": "XXXX", "Description": "", "Modules": [ { "Name": "YourProjectName", "Type": "Runtime", "LoadingPhase": "Default", "AdditionalDependencies": [ "Engine", "AIModule" ] } ], "Plugins": [ { "Name": "RawInput", "Enabled": true } ] }
change it to
{ "FileVersion": 3, "EngineAssociation": "4.XX", "Category": "XXXX", "Description": "", "Modules": "", "Plugins": [ { "Name": "RawInput", "Enabled": true } ] }
or maybe even remove the modules section completely…
Have no more ideas than this, but if you at least could open your project, you will be able to migrate content into a new one and start adding C++ stuff there, having installed Visual Studio and DotNet SDK at that time.