Visual Studio 2012 is no longer supported by Microsoft (support ended in January 2018). It is not fully optimized for Windows 11, but it does run on Windows 10 with specific workarounds.
Download Visual Studio Professional 2012 or Ultimate 2012 if you have a license key. Without a key, you get a 30-day trial. visual studio 2012 download windows 10
If you need to compile old code, consider: Visual Studio 2012 is no longer supported by