计算代码度量时发生错误 [英] An error occurred while calculating code metrics

查看:879
本文介绍了计算代码度量时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图在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.

    这篇关于计算代码度量时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆