Description
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. Rad.
The Discussion
-
Bas 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 Mattus Thanks Bas
-
karstenj 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.
-
bahadirarslan 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.
-
kobowi 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?
-
karstenj @bahadirarslan: Thanks for reporting this. We've logged it as an issue and are investigating.
-
karstenj @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.
-
sirmaelstrom 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.
-
MattJacobi
Same thing here. I use FxCop, it is installed, but it doesn't appear to know it is there. Help! I need my achievements!12 minutes ago, 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.
-
Withermage @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.
-
Withermage @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.
-
Withermage @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.
-
chrisBlazek 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.
-
Ruapho 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.
-
karstenj Thanks everyone for telling us about this; we've logged the issue and are currently investigating.
-
Jellyworld 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?
-
Jellyworld 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.
-
79_E4_9E_EE_49_F0 Are there any news about the FxCop problem?
-
karstenj 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.
-
MO2k4 I've got 10.0 but still no luck with the fxcop achievements
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.
-
Botz3000 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)
-
pocki Thanks Botz3000, now it also works for me!
28 minutes ago, 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"
-
Botz3000 Of course, exchange "C:\Program Files" with the corresponding path on your machine.
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).
-
MattJacobi 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.
-
Isawen 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.
-
chrisBlazek @Botz3000:That should be an Achievement all in itself!
-
liangchao hen ka -
YXGod I've tried as MattJacobi told by copying files, but it still doesn't work...
-
daef @MattJacobi: same here!
-
RSims With all these comments I'm afraid to install FXCop lol
-
MrZeng shishi
-
karstenj 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.
-
FinsterDexter Here is a link to download FxCop v10, since MS is incapable of hosting the file themselves.
-
mr 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..
Conversation locked
This conversation has been locked by the site admins. No new comments can be made.