Please help me with FxCOP 1.32 and ASP.NET 2.0


G

Guest

Environment:
Microsoft Visual Studio 2005 Professional Edition
Microsoft Visual Source Safe 2005
FxCop 1.32

Project:
ASP.NET 2.0 C# Project
5 Developers

We are trying to implement FxCop into our build workflow and can't figure
out how best to tackle the task.

1) How can we automate FxCop in the build of the ASP.NET 2.0 project?

2) Do we need to use VSS to sync the FxCop rule set among developers?

3) Is there anything else you thing we should consider?

Will


Will G. Baldwin
Information and Educational Technology
Department of Communications
Kansas State University Research and Extension


Phone: 785-532-6270
E-Mail: wbaldwinREM()[email protected]
 
Ad

Advertisements

M

[MSFT]

Hello Will,

In Visual Studio 2005, Code analysis FxCop is a build-in funtion for every
project:

1.Select the project in Solution Explorer.
2. On the Project menu, click Properties.
3. Click the Code Analysis tab.
4. Select Enable Code Analysis.

Here is an good article about this:

http://msdn2.microsoft.com/en-us/library/y8hcsad3.aspx

For question about VSS, you may take a look at VSTS (visual studio team
system). You can use it instead of VSS and it is more powerful than VSS.
With VSTS, the administrator can specify the check-in rule based on the
code analysis or else. For example, a developer couldn't check in a file if
it hadn't passed the code analysis rule specified by administrator.

http://msdn.microsoft.com/vstudio/teamsystem/default.aspx

Hope this help,

Luke
 
G

Guest

Luke,

Thank for the help but when I follow you procedure I don't see a Code
Analysis tab.

On a Windows Project I get the following tabs:
Application
Build
Build Events
Debug
Resources
Settings
Reference Paths
Signing
Security
Publish

On a ASP.NET 2.0 Web Project I get the following tabs:
References
Build
Accessibility
Start Options
MSBuild Options

==================
No Code Analysis Tab !
==================

Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Professional
Microsoft Visual Basic 2005 77626-009-0000007-41512
Microsoft Visual C# 2005 77626-009-0000007-41512
Microsoft Visual C++ 2005 77626-009-0000007-41512
Microsoft Visual J# 2005 77626-009-0000007-41512
Microsoft Visual Web Developer 2005 77626-009-0000007-41512
Crystal Reports AAC60-G0CSA4B-V7000AY

What am I doing wrong?
Thanks for the help!

- Will
 
K

Kevin Spencer

Code Analysis only comes with Visual Studio .Net 2005 Team Suite.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top