计算代码度量时发生错误

编程入门 行业动态 更新时间:2024-10-28 10:28:22
本文介绍了计算代码度量时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我试图在Visual Studio 2013中运行代码度量对于C#项目(分析 - >计算代码度量的解决方案)我得到以下错误:

When I tried to run code metrics in Visual Studio 2013 for c# project (Analyze -> Calculate Code Metrics for Solution) I get following error:

"an error occurred while calculating code metrics"

发生,即使是新建项目这个错误,所以它不具有一定的参考有关问题。

This error occurred even for the newly created project, so it was not related with some reference issues.

为了解决这个问题,我下面的命令以管理员身份运行:

To solve this issue I've executed following command as an Administrator:

regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VsLangproj.olb"

结论

  • 我已经验证了这个问题不与更新4发生在新安装的VS 2013(安装程序包括在内),这意味着,这可能与更新更新4有关。
  • 推荐答案

    对于为数不多的我的Visual Studio项目是指参照其源不可用,如下面的图像中的问题:

    For the issue that the few of my Visual Studio projects was referring reference for which the source was not available, as shown in the image below:

    删除这些引用启用码矩阵功能将再次合作。

    Removing those reference enabled the Code Matrices functionalities to be working again.

更多推荐

计算代码度量时发生错误

本文发布于:2023-10-30 22:15:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544155.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:度量   发生错误   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!