在VS Toolbox中安装自定义控件 [英] Install Custom Control in VS Toolbox

查看:138
本文介绍了在VS Toolbox中安装自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们公司提供了安装Inno Setup的第3方组件.我们使用 VS Package 将组件自动放入Visual Studio Toolbox.但是它有时会失败. VS Package还需要一个名为" Package Load Key "的包-即使我们对其进行了测试,Visual Studio还是拒绝将我们的组件集成到某些计算机上.

Our company provides 3rd party components installed the Inno Setup. We use VS Package to put our component into Visual Studio Toolbox automatically. But it sometimes fail. The VS Package also need something called "Package Load Key" - even though we test it, the Visual Studio refuses to integrate our component on some machines.

至少在VS 2008和VS 2010上都可以使用其他替代方法吗?我花了一整天的时间研究这些问题,但似乎没有一个完整的解决方案:

Are there any alternatives that work with at least both VS 2008 and VS 2010 ? I spent whole day researching for these, but no solution seems complete:

Visual Studio Toolbox Manager 中有一个实现,但这仅适用于VS 2005和2008.我需要它来确保至少与2008和2010配合使用.用户可以安装2005/2008/2010版本的所有可能组合...

There is an implementation in Visual Studio Toolbox Manager, but this works with VS 2005 and 2008 only. I need it to ensure working with at least 2008 and 2010. The user can have every possible combination of 2005/2008/2010 versions installed...

创建VSI包很容易,但是在安装时会出现一个向导,该向导对用户很烦人(添加了大约4个设置步骤,每个额外的步骤都减少了我们潜在客户的百分比...).就像是安装程序中的安装程序...

It is easy to create VSI package, but when installing it, a wizard appears, which is annoying to users (adds some 4 more steps to setup process - every extra step cuts few percent of potential customers from us...). It would be something like an installer within installer...

工具箱控件安装程序看起来很有希望,但是该文档较旧,而且看起来不能与2005年以后的VS一起使用.

Toolbox Control Installer looks promising, but the documentation is old and it does not look that it works with VS newer than 2005.

用户必须右键单击工具箱",选择选择项目...",然后浏览该组件的DLL文件.每次在VS的每个版本中都可以使用,但是,就像使用VSI方法一样,许多烦琐的开发人员将卸载该组件并且从不使用(=购买),因为该组件不会自动出现在工具箱"中,并且他们懒于计算.了解如何添加它.

The user have to right-click on the Toolbox, select "Choose Items..." and then browse for the component's DLL file. This works every time in every version of VS but, as with VSI approach, many petulant developers will un-install the component and never use it (= purchase it) because it does not appear in ther Toolbox automatically and they are too lazy to figure out how to add it.

推荐答案

我写了一篇教程文章,讨论和比较所有方法:

I wrote a tutorial article discussing and comparing all the approaches:

Visual Studio工具箱控件集成

这篇关于在VS Toolbox中安装自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆