使用 StyleCop 在文档标题中添加作者姓名 [英] Adding Author Name in document Header using StyleCop

查看:30
本文介绍了使用 StyleCop 在文档标题中添加作者姓名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 中使用 StyleCop.每当我添加一个新文件时,它都会添加一些信息,例如公司名称、版权详细信息.我还想添加作者姓名和创建日期.是否可以在某处更新 StyleCop 设置以支持这一点?

I am using StyleCop with Visual Studio. Whenever i add a new file it adds few information like company name ,copyright details. I want to add author name and creation date also .Is it possible to update the StyleCop Setting somewhere to support this ?

推荐答案

http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/25/sharing-source-analysis-settings-across-projects.aspx

http://blogs.msdn.com/b/sourceanalysis/archive/2008/05/25/managing-source-analysis-project-settings.aspx

在他们之间你被排序;)

Between them you are sorted ;)

因此,您为项目创建了一个 stylecop 设置文件(右键单击项目 -> stylecop 设置),然后将其复制到解决方案根目录中,所有项目基本上都将从中继承其 stylecop 设置.

So you create a stylecop settings file for a project (right click on project -> stylecop settings) then copy it into solution root and all the projects will basically inherit their stylecop settings from it.

这篇关于使用 StyleCop 在文档标题中添加作者姓名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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