简体   繁体   English

为Windows 8.1安装RSAT不会在GAC中放置预期的程序集

[英]Installing RSAT for Windows 8.1 does not place expected assemblies in the GAC

I installed the Remote Server Administration Tools for Windows 8.1 ( http://www.microsoft.com/en-gb/download/details.aspx?id=39296 ) expecting that this would populate the GAC with the Microsoft.GroupPolicy assemblies. 我安装了Windows 8.1的远程服务器管理工​​具( http://www.microsoft.com/en-gb/download/details.aspx?id=39296 ),期望这将用Microsoft.GroupPolicy程序集填充GAC。

The tools themselves installed successfully, however the expected assemblies are not in the GAC. 工具本身已成功安装,但是预期的程序集不在GAC中。

I have repeated the exercise with the Windows 7 tools ( http://www.microsoft.com/en-gb/download/confirmation.aspx?id=7887 ) and those assemblies do appear in the GAC following installation. 我已经使用Windows 7工具( http://www.microsoft.com/en-gb/download/confirmation.aspx?id=7887 )重复了该练习,安装后这些程序集确实会出现在GAC中。 Windows 7 GAC

Has anyone else experienced the same issue? 还有其他人遇到过同样的问题吗? If so, how did you resolve it? 如果是这样,您如何解决?

You are just looking in the wrong location, the screen-shot shows the GAC for the v2 runtime. 您只是在错误的位置查看屏幕快照,显示了v2运行时的GAC。 Stored in c:\\windows\\assembly. 存储在c:\\ windows \\ assembly中。 You however downloaded a Win8.1 program, it almost certainly uses .NET 4.5 since that's the version that's pre-installed on Win8. 但是,您下载了Win8.1程序,几乎可以肯定使用.NET 4.5,因为那是Win8上预安装的版本。

Which uses a different GAC, the v4 version is located in c:\\windows\\microsoft.net\\assembly. 使用不同的GAC,v4版本位于c:\\ windows \\ microsoft.net \\ assembly。 There is no shell extension for it that flattens the view, you can see the directories in the GAC as-is. 没有可扩展视图的shell扩展,您可以按原样在GAC中查看目录。 Easy enough to navigate, the GAC structure isn't very complicated. GAC的结构很容易导航,并不是很复杂。

Of course you'll have to target .NET 4.x in your project to use these assemblies. 当然,您必须在项目中定位.NET 4.x,才能使用这些程序集。 And keep in mind that it still might favor local deployment instead of the GAC, you'll have to look in the install directory as well. 并且请记住,它仍可能会优先于本地部署而不是GAC,您还必须查看安装目录。 I didn't try it. 我没有尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM