I tried reinstalling, modifying, but still no luck...
The other CLR options don't work and always give errors.
I tried reinstalling, modifying, but still no luck...
The other CLR options don't work and always give errors.
I suggest you should check whether you have installered the C++/CLI support. Open the VS Installer window, you could click on "Individual Components", then scroll quite a ways down to get to the "Compilers, build tools, and runtimes" section. In there, you'll find a list of components for c++/cli support. You could choose the version you need to install.
For more details about create CLR empty projects, I suggest you could refer to the Doc: How to: Create CLR Empty Projects
I had VS 2019 installed and was working on a 2019 solution with 2019 projects in VS 2022. I had to install CLR (CLI?) support for 2019 as well to get them to show up, even though I was running VS 2022