单集文件夹? [英] Mono assembly folders?

查看:95
本文介绍了单集文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows系统注册表中有一个像项:

On a windows system the registry has keys like:

HKLM \ SOFTWARE \微软\ .NETFramework \ V2.0.50727 \ AssemblyFoldersEx

HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx

有关点网组件的位置比GAC文件夹等。

for locations of dot net assembly folders other than the gac.

难道一个非赢单系统具有检索这些的方式还是被它只是认为不重要?

Does a non-win mono system have a way of retrieving these or was it just considered not important?

推荐答案

注册表是不是跨平台的。这也是不存储配置数据的好地方。不要使用注册表.NET除非你是处理旧code。

The registry is not cross platform. It is also not a good place to store your configuration data. DO NOT USE THE REGISTRY IN .NET UNLESS YOU ARE DEALING WITH LEGACY CODE.

GAC是有在两个单声道和.NET跟踪全球组件的为您服务。任何地方议会应保持与你的程序的其余部分。

The GAC is there to keep track of global assemblies for you in both Mono and .NET. Any local assemblies should be kept with the rest of your program.

如果你确实需要这些位置(你应该),那么你就应该手动指定在配置文件中这些位置。

If you really need these locations (and you shouldn't), then you should manually specify these locations in a configuration file.

你为什么要寻找一个程序集是在GAC反正的物理位置?

Why are you looking for the physical location of an assembly that is in the GAC anyway?

这篇关于单集文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆