简体   繁体   English

Visual Studio 2017中的工具箱控件安装程序(TCI)

[英]Toolbox Control Installer (TCI) in Visual Studio 2017

In Visual Studio 2015 and earlier there was an easy way to add a custom control to the Toolbox by adding a registry key in 在Visual Studio 2015及更早版本中,有一种简单的方法可以通过在以下位置添加注册表项来向工具箱添加自定义控件:

HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\XX.0\\ToolboxControlsInstaller HKEY_LOCAL_MACHINE \\ SOFTWARE \\ WOW6432Node \\微软\\ VisualStudio的\\ XX.0 \\ ToolboxControlsInstaller

It seems not working anymore in Visual Studio 2017, someone know how to achieve the same goal? 在Visual Studio 2017中似乎不再工作了,有人知道如何实现相同的目标吗?

Starting from VS2017, Microsoft wants to reduce the registry impact (as described here ) and each instance (Professional, Community, etc...) installed on the same machine for the same user has its own settings. 从VS2017起,微软希望减少注册表的影响(如描述在这里 ),并安装在同一台机器上对同一用户的每个实例(专业,社区等)都有自己的设置。

In short: 简而言之:

  • If you need to register a single component, you can continue to add the ToolboxControlsInstaller subkey in the registry 如果您需要注册一个组件,则可以继续在注册表中添加ToolboxControlsInstaller子项。
  • If you need to register a lot of components, the suggested approach is to use VSIX and PKGDEF for leaving the registry cleaned. 如果您需要注册很多组件,建议的方法是使用VSIX和PKGDEF清除注册表。

BTW both in registry and %VSAppDataVisualStudio% folder, the new subkeys/subfolders are created for each Visual Studio instance. 顺便说一下,在注册表和%VSAppDataVisualStudio%文件夹中,都会为每个Visual Studio实例创建新的子项/子文件夹。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM