c sharp 中调用mo如何解决引用问题?

本文提供了一种解决.NET SDK安装过程中遇到的问题的方法。通过编辑注册表中的特定条目,可以确保正确安装.NET SDK并使某些应用程序能够正常工作。具体步骤包括定位注册表中的指定路径、复制相关路径值、创建新的注册表条目并设置相应的值。

Step 1: Run "REGEDIT" from the Command Prompt or the Windows "Start | Run..." menu item and navigate to this key: HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework In this key are a few different values on the right-side panel, one of them is named "sdkInstallRootv1.1". The value to the right of this name is the absolute path on your machine's disk where "bin/gacutil.exe" is stored. In a typical default installation of .NET, the path in this key's value might look something like this: "C:/Program Files/Microsoft Visual Studio .NET 2003/SDK/v1.1/"

Step #2: In the right side panel of the Registry Editor, left-click to select the "sdkInstallRootv1.1" in the "Name" column. Then go up to the "Edit" menu and select "Modify", which will open a new smaller window called "Edit String".

Step #3: In the "Edit String" window, use your mouse to highlight and select the entire contents of the "Value Data" text box, then use [Ctrl] + C to copy that string to the clipboard. Then hit the "Cancel" button to dismiss this "Edit String" window.

Step #4: Go back to the left panel of the Registry Editor panel and left-click on the ".NETFramework" key to select it. Then go to the "Edit" menu and select "New...", which opens a menu to the right in which you should choose the menu item which says "String Value".

Step #5: A new entry will be made in the "Name" column of the right panel of the Registry Editor called "New Value #1" ready to edit. Change its name to "sdkInstallRoot". If it won't let you edit the name, then right-click on "New Value #1" and select "Rename" from the popup menu, then type in the new name "sdkInstallRoot" and hit [Enter] to make the name change.

Step #6: Right-click on your new name "sdkInstallRoot", and select "Modify" from the popup menu. Single-click your mouse into the text box below "Value Data", then use [Ctrl] + V to paste in the path string which you copied into the clipboard back in Step #3 above. Then click the OK button to finish the edit and dismiss the small "Edit String" window.

大体翻译:打开注册表(在windows开始的运行中键入regedit),打开(找到)HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework 这一项,新建一个字符值"sdkInstallRoot”,为这个字符值修改数据为字符值为"sdkInstallRootv1.1"的数据值.我成功了,然后安装MO2.2,MO2.2的SDK .net的支持选项就可选安装了 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值