Run Visual studio vs package in custom Hive (not Exp)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 10:14:14

问题


I'm developing a VsPackage and try to test it under Hive other then the Exp.

I created a new Hive using the vs developer command prompt using the following command: devenv /rootsuffix MyExp And than run VS with /rootsuffix MyExp command line arguments, but failed to make my extension work on that hive . Only when I run it under the Exp it work.

The main reason that I don't want to run it under the Exp hive is that I don't want to effects other extension on the hive.


回答1:


After searching the 'Exp' string under my package project sub folders. I found the place that declares to where the VSSDK build tool will copy my vs-package.

On my machine, under my vs-package folder:

MyPackage\packages\Microsoft.VSSDK.BuildTools.14.1.24720\tools\vssdk\Microsoft.VsSDK.Common.targets file.

I change the value in VSSDKTargetPlatformRegRootSuffix under PropertyGroup section from:

<VSSDKTargetPlatformRegRootSuffix Condition="'$(VSSDKTargetPlatformRegRootSuffix)' == ''">*Exp*</VSSDKTargetPlatformRegRootSuffix>

to:

 <VSSDKTargetPlatformRegRootSuffix Condition="'$(VSSDKTargetPlatformRegRootSuffix)' == ''">*MyExp*</VSSDKTargetPlatformRegRootSuffix>

MyExp is the name of my new Hive.



来源:https://stackoverflow.com/questions/35488694/run-visual-studio-vs-package-in-custom-hive-not-exp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!