UI Option missing when adding new item.

Kurt Kregger 21 Reputation points
2022-11-09T04:52:30.623+00:00

I'm using the latest version of Visual Studio 2022 as of 11/8/22.
I created a winform app for visual c++ cli.
Desktop development with C++ and .NET desktop development workloads are installed.
I have no problem working with the main form, although Visual Studio 2022 is a bit flaky when it comes to displaying the form designer.
When I try to add another form by selecting Project->Add New Item... the UI option is missing.
So, it's impossible to add another form to the app.
My question then, is what do I have to do to make the UI option available?

Developer technologies Windows Forms
Developer technologies C++
Developer technologies .NET .NET CLI
{count} votes

Accepted answer
  1. Minxin Yu 13,501 Reputation points Microsoft External Staff
    2022-11-10T01:34:30.753+00:00

    Hi, @Kurt Kregger

    Try installing C++/CLI in Visual Studio Installer. CppCLR_WinFormsProject looks like a user-defined project template.
    258890-image.png
    258906-image.png

    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Kurt Kregger 21 Reputation points
    2022-11-09T16:56:57.73+00:00

    @ MinxinYu I did not have Project->Add New Item ->CLR option.
    @Viorel Selecting the project node doesn't seem to make any difference.


  2. Kurt Kregger 21 Reputation points
    2022-11-09T17:58:02.133+00:00

    258846-capture.png

    0 comments No comments

  3. Kurt Kregger 21 Reputation points
    2022-11-09T18:12:00.773+00:00

    I don't know if it makes a difference but, I'm using the community version of vs 2022.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.