add-in

Load NuGet dependencies at runtime

谁说胖子不能爱 提交于 2019-11-29 02:33:03
问题 I'm looking for a way to run code by executing the following steps: Receiving a list of NuGet packages (a list of tuples ("package name", "package version", "path to main class"). Retrieving them in a local directory (cf code sample #1) Loading them in my program at run-time Running the main classes by introspection (cf code sample #2) By now I am struggling with the third step. I can't find out how to load my package at run-time. My main question are: How can I find out in which folders were

What can cause Outlook to change a COM-addin's LoadBehavior to 2 - other than unhandled exceptions?

白昼怎懂夜的黑 提交于 2019-11-29 00:55:08
问题 For some weeks now we have been fighting with an issue where at a small number of customers our Outlook addin gets unloaded and disabled for yet undetermined reasons. By "disabled" I mean that Outlook changes the following registry value from 3 to 2 which in effect means that the addin will not be loaded on next startup: HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins\[OurAddin.sProgID]\LoadBehavior There is no error message and neither do any exceptions show up in the log files

Visual Studio 08 Spell Check Addin? [closed]

元气小坏坏 提交于 2019-11-28 21:06:44
If possible one that supports at least spell checking: C# string literals HTML content Comments The plugin from Microsoft's Mikhail Arkhipov does HTML and Comments, I don't believe it does C# strings, though. I use the Agent Smith plugin for ReSharper for that. If you're using ReSharper , there's a free addon for it called Agent Smith Plugin . One of its many features is a built in spell checker, that allows fixing the spelling mistakes using the ReSharper shortcut key, Alt - Enter . Dane O'Connor Well, 3 weeks later, I've stumbled across CodeSpell . [ Note: this link no longer works and the

Cannot debug or run Word AddIn because the required version of Microsoft Office is not installed

旧时模样 提交于 2019-11-28 19:42:54
问题 I need to work on an existing Word 2007 addIn project that's a part of a MSVS 2008 solution. However, when I try to debug the addIn, I get the following error message: "You cannot debug or run this project, because the required version of the Microsoft Office application is not installed". I have Office 2007 installed. I tried creating a new Word 2007 addIn project in the same solution, and I have no problem debugging it. As far as I can tell, all the referenced Office assemblies are the same

Creating add-in for Excel using C#

心不动则不痛 提交于 2019-11-28 18:44:09
I want to use C# class methods in Excel. Can anybody guid me how to do it ? The C# component will be excel add-in. How to create setup for this addin, so that I just need to give setup to user which will install add-in at client's machine. User should not need to do any other steps like registering the C# dll. You will need to create a new Visual Studio project of type Excel 2007 Add-In (or Excel 2003 Add-In). The option for this can be found (in Visual Studio 2008) at: New Project dialog -> Project types -> Visual C# -> Office This Add-In will need to be installed on the target machine(s).

How to -> Visual Studio Add In Manager

末鹿安然 提交于 2019-11-28 18:14:10
How do I use the Add-In Manager in Visual Studio? Here is the problem and solution. I want to add this SmartPaster addin and need to get these 3 files listed in the Add-In Manager dialog? SmartPaster2010.AddIn SmartPaster2010.dll SmartPaster2010.xml Edit: Microsoft Add-In Registration says: 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. I went to Tools > Options > Environment > Add-In/Macro Security,

What Visual Studio add-ins do you use? [closed]

二次信任 提交于 2019-11-28 17:58:58
问题 I have the following installed: Imports Sorter (for VS 2005) GhostDoc Regex Find and Replace (.Net regex compatible find and replace, because VS has its own regex syntax) rockscroll Smart Paster Sonic File Finder Cool Commands 回答1: Visual Assist X 回答2: Most important ones for me are Resharper 4 TestDriven.NET 回答3: Refactor! Pro TestDriven.net DPack GhostDoc AnkhSVN (replaces VisualSVN for me now) 回答4: I use: ReSharper VisualSVN TestDriven.net If anyone knows of a good native C++ refactoring

Anyone know of any (free / open source) VI integration for Visual Studio?

梦想与她 提交于 2019-11-28 14:37:25
问题 vi is for cool kids. 回答1: ViEmu - Not Free but great Vim emulation. Visual_Studio.vim - Allows you to manage visual studio from Vim. Using GVim as the Visual Studio Editor 回答2: After @joe's answer, Jared Parsons created the great VsVim. It's been featured on Visual Studio Gallery. It's a ready extension package. I downloaded it, ran the file and it worked out of the box. It's free, too. 回答3: Starting with Visual Studio 2010 you can use VsVim. It's a free extension available on the extension

How do you call “Document Format” programmatically from C#?

核能气质少年 提交于 2019-11-28 12:24:07
I'm writing a simple VS add-in and would like to programmatically invoke the "Document Format" option (under Edit) within code. Google isn't being very friendly to me today.... Command cmd = _applicationObject.Commands.Item("Edit.FormatDocument", -1); object dummy = null; _applicationObject.Commands.Raise(cmd.Guid, cmd.ID, ref dummy, ref dummy); If you have a reference to your document (of type Window), and you have a reference to the _DTE object, you can call it like this: myDocument.Activate(); myDTE.ExecuteCommand("Edit.FormatDocument", string.Empty); Most of the time, you can get a

Is there a way to access a Ribbon (XML) at run time?

情到浓时终转凉″ 提交于 2019-11-28 12:05:50
I'm working on a Word 2007 app-level add-in. So far, I haven't experienced major obstacles except for converting the add-in's Ribbon interface to XML. I have to use Ribbon XML because the feature I'm working on can only be done this way. The problem is that by switching to Ribbon XML I can no longer access the interface at run time via Globals.Ribbons. This link http://msdn.microsoft.com/en-us/library/bb772088.aspx does a good job explaining how to access a Visual Designer Ribbon but it completely ignores the XML Ribbon case. Specifically, I need to be able to access some visual controls such