Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

FxCop For VS Achievements

You may notice that earning some of the achievements requires FxCop.  If you have Visual Studio 2010 Premium or Ultimate, you are all set, as FxCop gets redistributed with these products. However, if you have Visual Studio 2010 Professional, you will need to install FxCop from here. Note that it must be FxCop 10.0.

Tag:

Follow the Discussion

  • BasBas It finds lightbulbs.

    Really guys? The FxCop "download" still points to a readme that tells you to install the Windows SDK and find the FxCop installer in the program files folder? Sigh...

  • Maddus MattusMaddus Mattus Maddus on C9, Is often ​controversi​al, But fun ​none-the-​less -​evildictait​or

    Thanks Bas Smiley

  • Karsten Januszewskikarstenj Karsten Januszewski

    Unfortunately our hands are tied on this one.  The good news is that the dlls needed by the add-in get redisted by VS Premium and Ultimate.

  • Unfortunately FxCop causes performance problems.

    Our solution has 18 projects and there are thousands of classes in solution. After i had build my solution, FxCop starts at background and CPU hits %98.

    If we can optionally close FxCop, it will be better.

  • I'm running VS2010 Professional and have installed FxCop for VS Achievements - how can I verify that the Achievements extension is able to find the required FxCop files?

  • Karsten Januszewskikarstenj Karsten Januszewski

    @bahadirarslan: Thanks for reporting this.  We've logged it as an issue and are investigating.

  • Karsten Januszewskikarstenj Karsten Januszewski

    @kobowi:Probably the best way to confirm things are working is to attempt to get an achievement that requires FxCop. You can tell which ones require FxCop by looking at the description text of the achievement.

  • When using Professional version, is there any post build events that are needed to get the FxCop achievements to work?  I installed FxCop with no issue but I'm not getting any of the achievements.  I even removed the extension, reinstalled fxcop and then reinstalled the extension and they are still not working upon build of a solution that should trigger more than one of them.

  • , sirmaelstrom wrote

    When using Professional version, is there any post build events that are needed to get the FxCop achievements to work?  I installed FxCop with no issue but I'm not getting any of the achievements.  I even removed the extension, reinstalled fxcop and then reinstalled the extension and they are still not working upon build of a solution that should trigger more than one of them.

    Same thing here. I use FxCop, it is installed, but it doesn't appear to know it is there. Help! I need my achievements!

  • @MattJacobi: I'm having the same problem, I just did a lot of hoop jumping to get that installed and it's not recognizing the achievements.

  • @sirmaelstrom: I  am actually using Ultimate and not professional, but I installed the tools anyways including FxCop. Either way, I'm not getting any credit for achievements marked as requiring FxCop.

  • @karstenj: Still not getting achievement credit for simple things like make 20 class level variables of a single letter. I'm using ultimate edition, I've also installed FxCop from windows 7 7.1SDK as well.

     

    I'm on a 64 bit system not sure if that helps. Regular chieves are workin' fine.

  • chrisBlazekchrisBlazek problem?

    I'm in the same boat as previous posters. I'm running vs 2010 pro on Win 7 N Enterprise x64. I've ran FXCop as stand alone. I'm not sure how it integrates into vs directly.

  • RuaphoRuapho

    The achievment extension seems to use the FxCopCmd.exe for analysis. For some reason this hangs up, blocking the compiled .dll so any further compiliation fails. Cannot find a log file or anything, so i have to remove the extension.

  • Karsten Januszewskikarstenj Karsten Januszewski

    Thanks everyone for telling us about this; we've logged the issue and are currently investigating.

  • I am having the same issue with achievements not acknowledging the fxcop analysis. Do we have to import any specific achievement rules into fxcop to get this to work?

  • I found c:\users\<user name>\appdata\local\microsoft\visualstudio\10.0\extensions\coding4fun\visual studio achievements\1.0\coding4fun.vsachievements.fxcopachievementrules.dll and tried importing that. I can see the rules for a lot of the fxcop achievements. However, when I analyze my project, or even a specific file that should get an achievement, the analysis is successful, but no achievement is gained. I assume there is still something that needs to be imported into fxCop to trigger achievements.

  • Are there any news about the FxCop problem?

  • Karsten Januszewskikarstenj Karsten Januszewski

    Note that it must be FxCop 10.0.  So if you installed FxCop 1.36 which comes with Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 Version 7.0, it won't work. It must be the FxCop that comes with Microsoft Windows SDK for Windows 7 and .NET Framework 4 Version 7.1.

    Additionally, if you install FxCop 10.0 somewhere other than the default location ("Program Files"), the extension won't find it. We've logged this as a bug which we will address in a future release of the extension.

  • I've got 10.0 but still no luck with the fxcop achievements Sad Maybe some kind of failure because i got Programme and not ProgramFiles?

     

    Failure Message: 

    Fehler 1 CA0053 : Die Regelassembly "c:\programme\microsoft visual studio 10.0\team tools\static analysis tools\fxcop\rules\coding4fun.vsachievements.fxcopachievementrules.dll": Mindestens ein Typ in der Assembly kann nicht geladen werden. Rufen Sie die LoaderExceptions-Eigenschaft ab, wenn Sie weitere Informationen benötigen. konnte nicht geladen werden.

  • This is how it worked for me on VS2010 Pro: 

    Install FxCop
    [optional] Install FxCop Integrator (http://fxcopintegrator.codeplex.com/releases/view/78053)
    Copy all Files from "C:\Program Files\Microsoft Fxcop 10.0" to "C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop"

    (Note: replace "C:\Program Files" where applicable, e.g. "C:\Program Files (x86)" on 64 bit Windows)

  • Thanks Botz3000, now it also works for me!

    , Botz3000 wrote

    This is how it worked for me on VS2010 Pro: 

    Install FxCop
    Install FxCop Integrator (http://fxcopintegrator.codeplex.com/releases/view/78053)
    Copy all Files from "C:\Program Files\Microsoft Fxcop 10.0" to "C:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop"

    Note: When you have a 64bit Windows then will the above Directories look like this: "C:\Program Files (x86)\Microsoft Fxcop 10.0" and "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop"

  • Of course, exchange "C:\Program Files" with the corresponding path on your machine. Smiley

    Another thing, i uninstalled FxCop integrator just to be sure and the FxCop achievements still seem to work. So the FxCop Integrator might not even be necessary (it's still a nice extension though). 

  • I got it working. I had two problems.

    First, as said above, I was able to get FxCop running by merging the files from "C:\Program Files (x86)\Microsoft Fxcop 10.0" into "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop". This made it so FxCopCmd.exe would run.

    Second, I had a number of referenced external assemblies that are loaded from the GAC. FxCopCmd would only run for a very short time and wouldn't generate any achievements. I copied all relevant assemblies into the output directory and that did it. It appears it won't load from the GAC.

    However, on a side note, with these referenced assemblies... I wonder if it was in any way inspecting those... because I know I code very well and there are some achievements we got that we shouldn't have. For example, 100 fields in one class. Honestly, there is no way our code ever has over 20 or 30. That had to come from something else.

  • I have FxCop performance issues also (more than 100 projects).

    Too bad I need to uninstall this plugin. The command line for FxCop is 20971 characters long.

  • chrisBlazekchrisBlazek problem?

    @Botz3000:That should be an Achievement all in itself! Smiley

  • hen ka
  • I've tried as MattJacobi told by copying files, but it still doesn't work...

      Blushing

     
  • @MattJacobi: same here!

  • With all these comments I'm afraid to install FXCop lol

  • shishi

  • Karsten Januszewskikarstenj Karsten Januszewski

    Version 1.4, just released, fixes the issue with FxCop locking files. We've also added a setting where you can completely disable the extension from doing FxCop analysis.

  • Here is a link to download FxCop v10, since MS is incapable of hosting the file themselves.

    http://www.mediafire.com/?tza2nhf6rf1r6h8

  • mr kimhunmr kimhun

    hi..
    i friends..i korea in to pcfix in student..
    i don`t computer.
    this is lever is ms-dos.but,study in ms-sql,funcions,linux..
    i head to go to the run programming to not computer systems..
    have nice day..byebye..

Remove this comment

Remove this thread

close

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.