ArticleDirectory
IDE Integration
Reprinted from: http://editblog.csdn.net/msdncolumn/archive/2005/05/26/3702.aspx
Fxcop
Fxcop is a static analysis tool that manages AnalysisCodeProgramSet and report information about the set. Fxcop indicates the inspection performed as a rule during the analysis. A rule is a managed code that analyzes an assembly and ret
bit strange. The names of rules in other rule sets start with an uppercase word with no spaces in the middle, in this special rule set, the first letter of the first word is capitalized with spaces in the middle. I only need this rule. If the rule name is not specified, all rules in the rule set will be used. Because it is different from other conventional name styles, I searched for this name for a long time and finally found it through. Open any project, select this rule in code analysis, and
Fxcop ASP. NET security rules-Asp. Net security rule set customized for fxcop
Http://fxcopaspnetsecurity.codeplex.com/
Project Description
Fxcop ASP. NET security rules
This is a set of code analysis rules aiming at analyzing ASP. NET and ASP. net mvc security against best practices. The rules can be used by Visual Studio 10 ultimate or
1 fxcop fxcopcmd
Fxcop is an application that analyzes managed code assemblies (code that targets. net Framework Common Language Runtime) and reports information about the assemblies, such as possible design, localization, performance, and security improvements. generation of the issues concern violations of the programming and design rules set forth in the design guidelines, which are the
The. NET framework is very powerful, which means it is highly likely to create good applications, but there is also the possibility of creating inferior programs. FxCop is one of the tools that help create better applications by analyzing assemblies and using many different rules to check whether it conforms to these rules. FxCop is accompanied by a set of rules created by
Next to the configuration file replacement (http://blog.csdn.net/lu_yongchao/article/details/7173630) for the previous automatic release, which primarily records the use of fxcop in cc.net.
Code Standard detection tool fxcop cannot be directly used by CC. net. I use executabletask in tasks.
The specific configuration method of cruisecontrol. netconfig is as follows:
The content of the
, Click Tools> external tools and add one. As follows:
The relevant information to be filled in is shown in the above interface, the content is:
Title (name, any ):Run Fxcop
Command(path of fxcopcmd.exe ):C: \ Program Files \ microsoft fxcop 1.36 \ fxcopcmd.exe
Arguments (the debuglzq does not understand the meaning of each field when running some
Fxcop
The. NET Framework is very powerful, which means there is a great possibility of creating excellent applications, but there is also the possibility of creating inferior programs. Fxcop is one of the tools that help you create better applications. It uses the following methods: enables you to analyze the Assembly and use different rules to check whether it complies with these rules.
FxCop
The. NET Framework is very powerful, which means there is a great possibility of creating excellent applications, but there is also the possibility of creating inferior programs. FxCop is one of the tools that help you create better applications. It uses the following methods: enables you to analyze the Assembly and use different rules to check whether it complies with these rules.
Recently, I used. NET Compact framwork 3.5 (C #) as a Windows Mobile (6.5) project.CodeThe quality requirements are strict. I thought there was no major problem in the code. I did not expect to use fxcop for an analysis and I had reported more than 400 improvement suggestions.
Fxcop was used for the first time. In fact, visual studio.net 2008 has integrated the code analysis function. Right-click the proj
Code quality is important to the success or failure of a software project, which I think we all understand. So how do you ensure code quality in a software team? For this problem different people may have different answers, for me I feel that doing a good job of two code quality basically can guarantee:1. Code specification (specific specifications can refer to the. NET Design Specification book)2. Testing (mainly unit tests for programmers themselves)Micros
Some time ago I made a free test tool fxcop using Microsoft. After using it, I thought it was good and I could do some work.
Code It also helps to learn coding standards and improve code execution efficiency, thus improving the overall quality of code.
This tool can be tested in: design, globalization, interoperability, naming, performance (performance Rules ), you can also add rules for testing;
The
Fxcop command line example
I noticed someone hit my site from a Google search on this topic. my guess is they didn't find out what they needed, so I thought I 'd post a complete answer just in case someone else comes looking for it ..
From Michael fanning the dev lead for fxcop...
To invoke and run a project file from the command-line:
Fxcopcmd.exe/Project: myproject.
Some normative suggestions from fxcop
The following code is compiled according to the. NET code specification compiled by fxcop for reference only.I. Design)1.Abstract types shocould not have ConstructorsAbstract classes should not declare Constructor2.Assemblies shocould have valid Strong namesThe Assembly should have a strong name3. AvoidEmpty InterfacesAvoid using empty Interfaces4. Avoid excessive param
Http://msdn.microsoft.com/zh-cn/library/ms228593 (vs.80). aspx
C #3.0 specifications and other information can be obtained in http://msdn2.microsoft.com/en-us/vcsharp/aa336745.aspx
Some normative suggestions from fxcop
The following is based on fxcop. net
Code Write specifications for reference only.
I. Design)
1. abstract types shocould not have Constructors
Abstract c
Today, after reloading the system, I need to install the development tools, I use the development tools are visual Studio2008 and SQL Server2008r2, when the installation of the visual Studio2008 in the database when the problem occurs:Workaround:Install patches. Download installationhttp://www.microsoft.com/zh-CN/download/details.aspx?displaylang=enid=13276The rule "earlier versions of Microsoft Visual Studio 2008" failed. An earlier version of
Microsoft's recruitment philosophy-Five Core qualities of being a Microsoft employee (from Microsoft's 360 degree)
Microsoft has been committed to discovering and attracting elites in the industry. In the early days of its establishment, Bill Gates and Steve Ballmer personally participated in the recruitment of all new employees. Their philosophy of employing people and recruitment philosophy were as foll
Has microsoft abandoned Microsoft. Net? Where is the future of Net technology?-On the Microsoft technical line and. net technical line
Winform: The advantage is that it is easy to learn, but the disadvantage is that the interface is not easy to understand and the interface adaptability is poor.
Wpf: Microsoft integrate
Failed fromProgramSet D: \ windows \ Microsoft. NET \ framework \ v3.5 \ Microsoft. Build. Tasks. DLL to load the task "Microsoft. Build. Tasks. Delete ". The file cannot be loaded or the Assembly "file: // D: \ windows \ Microsoft. NET \ framework \ v3.5 \ Microsoft. Build.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.