How to generate class diagram from asp.net core 1.1 project

99封情书 提交于 2019-12-04 14:10:27

There's a bug in one of the files that prevents you using class diagrams in .Net Core projects. You can apply a manual fix for now. Open the file C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\Managed\Microsoft.CSharp.DesignTime.targets (or wherever you have installed it) and change this line:

<ProjectCapability Include="CSharp;Managed"/>

to this:

<ProjectCapability Include="CSharp;Managed;ClassDesigner"/>

Now restart Visual Studio and try again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!