digEmAll..
214
打开命令提示符并根据Visual Studio版本和操作系统体系结构键入以下行之一:
32位Windows上的VS 2008:
"%ProgramFiles%\Microsoft SDKs\Windows\v6.0A\bin\sn.exe" -T
在64位Windows上的VS 2008:
"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v6.0A\bin\sn.exe" -T
32位Windows上的VS 2010:
"%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\bin\sn.exe" -T
64位Windows上的VS 2010:
"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.0A\bin\sn.exe" -T
32位Windows上的VS 2012:
"%ProgramFiles%\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\sn.exe" -T
在64位Windows上的VS 2012:
"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\sn.exe" -T
64位Windows上的VS 2015:
"%ProgramFiles(x86)%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\sn.exe" -T
请注意,对于VS2012 +版本,sn.exe应用程序不再位于bin中,而是位于子文件夹中.另请注意,对于64位,您需要指定(x86)文件夹.
如果您更喜欢使用Visual Studio命令提示符,只需键入:
sn -T
where 是您感兴趣的程序集的完整文件路径,如果它有空格,则用引号括起来.
如果您使用的是64位计算机,请将%ProgramFiles%替换为%ProgramFiles(x86)%. (12认同)
很好的阐述答案.对于VS2015,它应该在%ProgramFiles(x86)%\ Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\sn.exe下 (2认同)