Visual Studio 在VisualStudio工具箱中安装. NETFramework控件

k3fezbri  于 2023-05-18  发布在  其他
关注(0)|答案(3)|浏览(234)

我们目前使用此项目在Visual Studio工具箱中安装.NET控件:http://vstudiotoolbox.codeplex.com/。这种方法需要在后台运行VStudio,导致操作非常慢。我们注意到,许多其他组件制造商可以立即安装他们的控制。
还有哪些其他办法?
谢谢。

5t7ly7z5

5t7ly7z51#

我写了一篇关于如何做到这一点的教程文章:
Visual Studio Toolbox Control Integration
我发现CodePlex上的项目已经过时了,并将其更新为与Visual Studio 2012一起工作。
其他方法包括:

  • 工具箱控件安装程序(TCI)包-可能是最快和最简单的方法
  • VSI和VSIX包
  • VSPackage -最强大、最复杂的方式

我在文章中也讨论了更新和卸载。

jm2pwxwz

jm2pwxwz2#

您需要创建VSI文件并使用Tool.InstallComponents Command。其实很简单。请参阅MSDN上的Toolbox Control Development文章。
VSI模板示例:

<?xml version="1.0" encoding="utf-8" ?>
<VSContent xmlns="http://schemas.microsoft.com/developer/vscontent/2005">
  <Content>
    <FileName>Web Connection\WebConnectionWebControls.dll</FileName>
    <DisplayName>Web Connection</DisplayName>
    <Description>Web Connection Toolbox controls for use with the Web Control Framework in VS.NET</Description>
    <ContentVersion>1.0</ContentVersion>
    <FileContentType>Toolbox Control</FileContentType>
  </Content>
</VSContent>

然后运行命令:devenv.exe /command Tools.InstallCommunityControls

相关问题