对于未经“管理”的代码,没有代码计数器行。 [英] No Lines of Code Counter for code that is not "managed"

查看:137
本文介绍了对于未经“管理”的代码,没有代码计数器行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我只是一家小型软件公司的小型发布工程师 - 我们最近从VS 2010升级到2017年。  VS2010中有一个插件可以很好地计算每个项目和每个解决方案的代码行数。 一些解决方案包含
几个项目(依赖项),我负责执行从发布到发布的SLOC报告。

I'm just a lonely little release engineer at a small software company - we recently upgraded from VS 2010 to 2017.  There was a plug in in VS2010 that worked nicely to count the lines of code per project AND per solution.  Some solutions contained several projects (dependencies) and I was in charge of conducting the SLOC reports from release to release.

我在Marketplace上看了一些类型的添加-on或具有相同基本功能的扩展。

I've looked on the Marketplace for some type of add-on or extension with the same, basic functionality.

VS2017确实具有"代码指标"。但由于我们的代码不是"托管",我收到错误"项目目标文件.......不包含托管代码"。

VS2017 does have "Code Metrics" but because our code is not "managed", I get the error "The project target file ....... contains no managed code".

任何想法,建议,想法,单个项目行数(简单,可以在一个目录中使用第三方工具)和多项目解决方案(统计所有集成/依赖项目)。 

Any thoughts, suggestions, ideas, for single project line counts (easy, could use 3rd party tool in one directory) AND for multi-projects Solutions (counting all integrated/dependent projects together). 

我在VS2010中使用的产品被称为简单的"项目线计数器"。 (www.wndtabs.com) 

The product I used in VS2010 was called simple "Project Line counter" (www.wndtabs.com). 

TIA花时间阅读并希望有所帮助!!

TIA for taking the time to read and hopefully help!!

- 孤独发布工程师

- Lonely Release Engineer

推荐答案

您好,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

请选择项目,右键单击项目名称并打开项目属性页面。

导航至配置属性 - > ;一般将公共语言运行时支持设置为公共语言运行时支持(/ clr),如下所示:

Navigate to Configuration Properties -> General to set Common Language Runtime Support to Common Language Runtime Support(/clr) as below:

在此之后,使用非托管代码计算此解决方案的代码度量标准。

After this, calculate the Code Metrics of this solution with the unmanaged code.

您还可以查看该主题:
https://stackoverflow.com/questions / 1244729 /如何计算视觉工作室解决方案中的代码

You can also have a look at the thread: https://stackoverflow.com/questions/1244729/how-do-you-count-the-lines-of-code-in-a-visual-studio-solution

祝你好运,

Joyce


这篇关于对于未经“管理”的代码,没有代码计数器行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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