Run Visual studio vs package in custom Hive (not E

2019-08-13 00:29发布

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.

标签: vspackage
1条回答
Juvenile、少年°
2楼-- · 2019-08-13 01:22

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.

查看更多
登录 后发表回答