【VS Shell Integrated】解决问题:" regpkg : error : 无效的 URI: 无法确定 URI 的格式"

今天在试验用XCOPY方式部署包时,在按SDK帮助导出PLK信息时

To generate the system registry file
  1. In the System Definition Model Command window, navigate to the folder that contains DeployPackage.dll. This is typically located in the project \bin\Debug\ directory.

  2. Type the following line at the command prompt:

    regpkg /regfile:DeployPackage.reg /codebase DeployPackage.dll

在命令行窗口输入

regpkg /regfile:DeployPackage.reg /codebase DeployPackage.dll

 

出现以下错误

regpkg : error : 无效的 URI: 无法确定 URI 的格式

 

后来还是看在线的SDK帮助,才发现原来是因为dll名要使用绝对路径,或者复制到regpkg.exe所在路径

也是靠帮助后面的Community Content

参见:

Visual Studio SDK

Tutorial: Simple VSPackage Deployment

http://msdn.microsoft.com/en-us/library/bb458038.aspx

 

附:

DeployPackage.reg中的dll路径要使用绝对路径,不能用相对路径,否则系统会到.net ide的路径找包的dll

posted on 2010-02-25 17:14  Apollo Sun  阅读(3411)  评论(0编辑  收藏  举报

导航