Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:45:51+00:00 2026-06-12T19:45:51+00:00

How can I run FxCop against an ASP.net Web-site? Background I have an ASP.net

  • 0

How can I run FxCop against an ASP.net Web-site?

Background

I have an ASP.net Web-site that I want to run FxCop against.

Note: I have an ASP.net web-site, not an ASP.net web-application, that I want to run FxCop against.

How can I run FxCop against an ASP.net web-site in Visual Studio 2010 Professional?


Some people suggest that it’s very simple: just right-click the web-site project, and click Run Code Analysis on Web Site:

The process it very simple…. just right click on the web site project and “Run Code Analysis on Web Site”

What they ignore is that no such option exists:

enter image description here


I also tried Tools menu -> FxCop. But of course that doesn’t work because its command line options:

FxCopCmd.exe /c /f:$(TargetPath) /d:$(BinDir) /r:"C:\Program Files (x86)\Microsoft Fxcop 10.0\Rules"

Doesn’t make sense for web-sites.


Someone has suggested, correctly, that it’s not possible, because there is no assembly for FxCop to validate:

The build process in ASP.NET 2.0 is very different than in ASP.NET 1.x, because it does not produce a dll file.

That means that you cannot use FxCop because it can only work with dll and exe file types.

That means that short of compiling the entire web-site into an assembly, you cannot run FxCop against an ASP.net web-site.

How can I run FxCop against an ASP.net web-site?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:45:52+00:00Added an answer on June 12, 2026 at 7:45 pm

    A workaround is to pre-compile your web site,

    1. Pre-compile your web site using aspnet_compiler.exe, http://msdn.microsoft.com/en-us/library/bb398860(v=vs.100).aspx
    2. Run FxCop on the result of precompilation.

    You could not see the “Run Code Analysis on Web Site” because your Visual Studio edition is not high end enough (Microsoft should be blamed as such essential features should be there in all editions).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can run my Asp.Net MVC 2 application without an issue on my local
I have a project that targets .NET 4.5. In Visual Studio 2012, I can
How can I have Fxcop run by TeamCity limit itself to looking at fewer
Heroku can run Web Dynos and Worker Dynos so that Web Dynos take care
I can run my program outside of a jar file, but I want to
I know that I can run an external Javascript file from within HTML with
I can run my Java Swing application from Eclipse without problems. But when I
I can run this command fine, with the output I want: ifconfig eth0 |
I can run all my reports from report studio just fine. So its not
I can run the following commands in the console for my Rails application and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.