64 位版本的 Windows SDK 中的 FxCop 在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7154199/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:55:06  来源:igfitidea点击:

Where is FxCop in 64bit version of Windows SDK?

.netwindowssdk

提问by Roman Kagan

I found the Microsoft instructions on how to setup the fxCop, I installed Windows SDK for Windows 7 but I cannot find the folder with FXCop.

我找到了有关如何设置 fxCop 的 Microsoft 说明,我安装了适用于 Windows 7 的 Windows SDK,但找不到带有 FXCop 的文件夹。

Here's a fragment from Microsoft's instructions:

这是 Microsoft 说明中的一个片段:

FxCop Installation Instructions

FxCop 安装说明

  1. Download the Microsoft Windows SDK for Windows 7 and .NET Framework 4 version 7.1.
  2. Run %ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\FXCop\FxCopSetup.exe to install FxCop.
  1. 下载适用于 Windows 7 和 .NET Framework 4 版本 7.1 的 Microsoft Windows SDK。
  2. 运行 %ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\FXCop\FxCopSetup.exe 安装 FxCop。

采纳答案by 500 - Internal Server Error

This appears to be an omission from the 64-bit version of the 7.1 SDK installer. It was missing for me as well after I ran the install, but then I installed the 32-bit version of the SDK on a VM that I have and then copied the FxCopSetup.exe file from the bin directory of that image to the 64-bit machine and ran it, and so far FxCop appears to be working fine on the 64-bit box.

这似乎是 64 位版本的 7.1 SDK 安装程序的遗漏。运行安装后,我也缺少它,但随后我在我拥有的 VM 上安装了 32 位版本的 SDK,然后将 FxCopSetup.exe 文件从该映像的 bin 目录复制到 64-位机器并运行它,到目前为止 FxCop 似乎在 64 位机器上运行良好。

回答by ARP

I also ran into the same issue using the 64-bit version. I worked around the issue by extracting the FxCop installer from within the SDK ISO, as shown here: http://ruthlesslyhelpful.net/2011/06/09/liberate-fxcop-10-0/

我在使用 64 位版本时也遇到了同样的问题。我通过从 SDK ISO 中提取 FxCop 安装程序解决了这个问题,如下所示:http: //ruthlesshelpful.net/2011/06/09/liberate-fxcop-10-0/

Just in case that link is not available, the steps include:

以防万一该链接不可用,步骤包括:

  1. Download the Windows SDK ISO for Windows 7 and .NET 4.0

  2. Open the ISO using 7-Zip and navigate to Microsoft\SDK\Setup\WinSDKNetFxTools\cab1.cab

  3. Within cab1.cab, look for a file that starts with WinSDK_FxCopSetup.exe, and extract it.

  4. Rename the extracted file to an .exe extension, and you're done.

  1. 下载适用于 Windows 7 和 .NET 4.0Windows SDK ISO

  2. 使用 7-Zip 打开 ISO 并导航到 Microsoft\SDK\Setup\WinSDKNetFxTools\cab1.cab

  3. 在 cab1.cab 中,查找以 WinSDK_FxCopSetup.exe 开头的文件并将其解压缩。

  4. 将提取的文件重命名为 .exe 扩展名,就大功告成了。

回答by Believe2014

Where is FxCop in 64bit version of Windows SDK?

64 位版本的 Windows SDK 中的 FxCop 在哪里?

Since FxCop 10.0 is distributed as part of Windows 7 SDK, you have to do some download and extractions to install it on servers which are not running Windows 7. You can follow instructionsto extract the setup file.

由于 FxCop 10.0 是作为 Windows 7 SDK 的一部分分发的,您必须进行一些下载和提取才能将其安装在未运行 Windows 7 的服务器上。您可以按照说明提取安装文件。

If you are in a hurry, you can download the standalone installer on Codeplex.

如果您赶时间,可以在 Codeplex 上下载独立安装程序。

There has not been any modification to the original binary file. You can check the file size, version # and the signature of the assembly to verify its authenticity.

没有对原始二进制文件进行任何修改。您可以检查文件大小、版本号和程序集的签名以验证其真实性。