Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, June 6, 2018 4:28 PM | 1 vote
Class diagram it is not working on Visual studio 2017 15.7.3
The .cd file is in a NetStandard 1.1 project.
The message says:
Can't load this file: XXXX This is not a valid type name.
Tried safe mode and has the same problem.
Edit: I tried removing everything but the root element in the xml
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
</ClassDiagram>
And the designer loaded. I could add my classes and make the diagram correctly, but when I closed the file and open it again it crashed the same way as before.
Alvaro Rivoir
All replies (6)
Wednesday, June 6, 2018 5:48 PM
>Class diagram it is not working on Visual studio 2017 15.7.3
Do you have the feature installed?
/en-gb/visualstudio/ide/class-designer/how-to-add-class-diagrams-to-projects
Dave
Thursday, June 7, 2018 4:03 PM
Off course. I have it installed. I added more details to the original post.
Alvaro Rivoir
Thursday, June 7, 2018 5:28 PM
>Off course. I have it installed. I added more details to the original post.
OK, sounds like you might have a reproducible bug then.
If you can, boil it down to the smallest example that reproduces the problem and report it to MS using the VS Report A Problem
facility.
Dave
Tuesday, December 11, 2018 3:50 PM
It's happening when you add Generics "<T>" to the diagram. Seems like an encoding problem around "<>" chars.
Tuesday, October 29, 2019 6:46 PM
I’ve got a recurring bug with cause class diagram from opening.
Using Class diagrams (class designer option) in Visual studio 2017 v15.9.17
The bug occurs in Static Library (c++) types with a reference to other libs, other projects in solution are not affected and continues to opens class diagram.
By removing the references list in this static lib, resolves the bug with class diagram.
To boil it down:
- Create a solution, add 2 c++ projects (Static library).
- Create a class in the second project, using class wizard. So class diagram can show something.
- In the second project use references to add the first project to the list.
- By selecting the class header in second proj. you can open class diagram and auto add this class.
At this moment class diagram doesn’t open, but if you repeat all steps and jump over 3th step. class diagram works normal.
Wednesday, October 30, 2019 12:07 AM
To boil it down:
- Create a solution, add 2 c++ projects (Static library).
- Create a class in the second project, using class wizard. So class diagram can show something.
- In the second project use references to add the first project to the list.
- By selecting the class header in second proj. you can open class diagram and auto add this class.
At this moment class diagram doesn’t open, but if you repeat all steps and jump over 3th step. class diagram works normal.
I can reproduce your scenario with the latest VS 16.4 preview 2.
Can you use the "Report a Problem" facility in VS and submit this as a bug and we'll see what MS have to say about this.
Your bug report will be more likely to get past the first line if you supply a minimal solution that reproduces the problem and
include precise steps on what to do with it to demonstrate it failing & succeeding.
Please post a link to your bug report back here and I'll add my comments to it.
Dave