.net 如何 -> Visual Studio 插件管理器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4653436/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 15:07:08  来源:igfitidea点击:

How to -> Visual Studio Add In Manager

.netvisual-studioinstalladd-in

提问by Jeremy Thompson

How do I use the Add-In Manager in Visual Studio?Here is the problem and solution.

如何在 Visual Studio 中使用加载项管理器?这是问题和解决方案。

I want to add this SmartPaster addinand need to get these 3 files listed in the Add-In Manager dialog?

我想添加这个SmartPaster 插件并且需要在插件管理器对话框中列出这 3 个文件?

  1. SmartPaster2010.AddIn
  2. SmartPaster2010.dll
  3. SmartPaster2010.xml
  1. SmartPaster2010.AddIn
  2. SmartPaster2010.dll
  3. SmartPaster2010.xml

Edit:Microsoft Add-In Registrationsays:

编辑:Microsoft Add-In Registration说:

To install the add-in on another computer, the .addin file must be placed in a location where Visual Studio checks for add-ins. These locations are listed in the Options dialog box, in the Environment node, on the Add-in/Macros Security page.

若要在另一台计算机上安装加载项,.addin 文件必须放置在 Visual Studio 检查加载项的位置。这些位置列在“选项”对话框的“环境”节点中的“加载项/宏安全”页面上。

I went to Tools > Options > Environment > Add-In/Macro Security, checked some paths put the AddIn files in a couple of these directories, restart VS2010 but still no luck!

我去了工具>选项>环境>加载项/宏安全,检查了一些路径,将加载项文件放在其中几个目录中,重新启动VS2010但仍然没有运气!

采纳答案by Lawren Smith

I had a similar issue, but it was that I was trying to use a VS Addin that was made for VS 2008.

我有一个类似的问题,但我试图使用为 VS 2008 制作的 VS 插件。

Even with the new folder added, it wasn't picking it up in vs 2010.

即使添加了新文件夹,它也没有在 vs 2010 中找到它。

By making a copy of the vs addin, and editing the .addin file, changing 9.0 to - you guessed it... 10.0... it works :) lol

通过制作 vs 插件的副本,并编辑 .addin 文件,将 9.0 更改为 - 你猜对了...... 10.0......它有效:) 大声笑

回答by Jeremy Thompson

Make a folder called "C:\VisualStudioPlugins"

创建一个名为“C:\VisualStudioPlugins”的文件夹

Open up Visual Studio > Tools Menu > Options > Environment > Add-In/Macro Security > Add the path "C:\VisualStudioPlugins"

打开 Visual Studio > 工具菜单 > 选项 > 环境 > 加载项/宏安全 > 添加路径“C:\VisualStudioPlugins”

Restart Visual Studio and the add-in is listed!

重新启动 Visual Studio 并列出加载项!

ps I didn't know the answer before I asked the question and hope it helps the .Net community.

ps 在我问这个问题之前我不知道答案,希望它可以帮助 .Net 社区。

回答by Lawren Smith

The product didn't come with installation instructions?

产品没有附带安装说明?

It sounds like you can probably just put the files into %DOCUMENTS%/Visual Studio 2010/Add-Ins(where %DOCUMENTS%is your documents folder, where VS likes to shove stuff by default) and reboot VS. But that's just a guess.

听起来您可能只需将文件放入%DOCUMENTS%/Visual Studio 2010/Add-Ins%DOCUMENTS%您的文档文件夹在哪里,默认情况下VS喜欢推东西)并重新启动VS。但这只是一个猜测。