Is there an alternative to generate a class diagram from an existing model in an ASP .NET Core project?

Syagush 6 Reputation points
2022-04-08T11:48:44.017+00:00

I found an article about how design and view classes and types with Class Designer.

But it is written that Class Designer is not available in .NET Core projects.

What is the best alternative ? (if an alternative exist in Visual Studio)

Developer technologies | ASP.NET | ASP.NET Core
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-04-11T02:33:48.073+00:00

    Hi @yagush-6858,

    Is there an alternative to generate a class diagram from an existing model in an ASP .NET Core project?

    This is a known issue, as a workaround, from the New File dialog box create a plain XML named Diagram.cd (replace Diagram with your choice), right click the file and select "Open With...", and select "XML (Text) Editor", then replace its contents with the following:

    <?xml version="1.0" encoding="utf-8" ?>  
    <ClassDiagram MajorVersion="1" MinorVersion="1">  
      <Font Name="Segoe UI" Size="9" />  
    </ClassDiagram>  
    

    Then, save it and reopen the project normally it should work now. Like this:
    191654-image.png


    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.

    Best regards,
    Dillion

    7 people found this answer helpful.
    0 comments No comments

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.