CodeProject, DotNet, VSTS

General tips: How to run Visual Studio as administrator always

Some times it is needed to run visual studio as administrator for system level activities like if you want to setup IIS virtual directory in your visual studio project, To setup IIS settings etc.

If you want to run visual studio as administrator once, you can right click devenv.exe and select “Run As Administrator”.

But sometimes there are requirement to run visual studio always as admin then you can set privilege level to administrator. Here are the steps:

Step 1 : Goto to executable of Visual studio IDE in “C:\Program Files(x86)\Microsoft Visual Studio 9.0\Common7\IDE\”, Right click on devenv.exe -> Properties -> Compatibility-> And Select “Run as Administrator” check box.

You will also need to setup for visual studio launcher.

Step 2: Go to executable of Visual Studio Launcher on “C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\VsLauncher.exe” and follow same steps like step 1.

VSTS

How to Integrate FxCop in VSTS 2010?

FxCop is standalone tool that can analyse managed code assemblies. It gives report about improvement in code based on Microsoft standard coding guidelines. However you can also add your rules in this tool.

FxCop is not integrated into Visual studio. There is separate extension (FxCop Integrator ) which can integrate Fxcop in Visual Studio 2010.

How to Install

You can install FxCop Integrator as independent installer or as extension in Extension Manager.

FxCopIntegrator1

How to Run Code Analysis ?

RunFxCopIntegrator

RunFxCopIntegrator2

Show Result

FxCopIntegratorResult