我希望以编程方式将新路径添加到外接程序/宏安全性
我知道它们应该存在于
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0????\AutomationOptions\LookInFolders
但是我检查了我的注册表,它并不存在
我使用的是64位Windows 7。Visual Studio 2010旗舰版。C#
你知道怎么添加路径吗??我在任何地方都找不到AutomationOptions\LookInFolders,我不知道是否应该添加它,以及如何添加它?
发布于 2011-07-07 17:14:56
Microsoft.Win32.RegistryKey key;
key =
Microsoft.Win32.Registry.LocalMachine.CreateSubKey(
@"SOFTWARE\Microsoft\VisualStudio\10.0\AutomationOptions");
if (key != null)
{
key = key.CreateSubKey(@"LookInFolders");
key.SetValue(Name,Path);
key.Close();我把它解决了
https://stackoverflow.com/questions/6607196
复制相似问题