add-in

MEF vs Mono.AddIn

帅比萌擦擦* 提交于 2019-12-20 10:33:59
问题 I'm developing a .NET 3.5 C# desktop application. It should be extensible via plug-ins. Are there any articles etc. discussing the differences between MEF and Mono.AddIn to help me make an informed decision? Or even better have you got experience with both of these frameworks and can comment on them? Thanks, Patrick 回答1: [NOTE: I work on MonoDevelop, which uses Mono.Addins, but I discussed the differences between MEF and Mono.Addins extensively with Glenn Block from the MEF team last week]

Add-In events are never executed

家住魔仙堡 提交于 2019-12-20 09:58:22
问题 I used the "Add-In for Visual Studio" wizard to create a new Addin project and now, I'm trying to add some event handlers: public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom) { _applicationObject = (DTE2)application; _addInInstance = (AddIn)addInInst; _applicationObject.Events.BuildEvents.OnBuildBegin += BuildEvents_OnBuildBegin; _applicationObject.Events.BuildEvents.OnBuildDone += BuildEvents_OnBuildDone; _applicationObject.Events

Do you know any file comparison add-in for visual studio

妖精的绣舞 提交于 2019-12-20 09:53:06
问题 Is there any built-in, add-in solution for visual studio to compare two files and display result with differences? I could't find one... 回答1: I use WinMerge. Not as good as Beyond Compare but it's free and open source. Also check out Visual Studio Comparison Tools, it's a Visual Studio add-in that connects it to WinMerge. 回答2: Here is an excellent post that describes integration of many 3rd party diff and merge tools into Visual Studio - including araxis, beyond compare, WinMerge and many

How to load/unload Word Add-in programatically?

我的未来我决定 提交于 2019-12-20 05:53:14
问题 I'd like to know how I can programatically load and unload a VSTO add-in in Word. I'm using Word 2007 and VS2010 with C#. I thought I might have some luck with using the Microsoft.Office.Interop.Word.COMAddins and .Addins properties, but the .Addins property gives an empty list and COMAddins is a collection of opaque COM objects. An alternative question suggests making the ribbon menu invisible, but I actually want to unload the add-in altogether. 回答1: I had similar requirement and achieved

How to customize save behaviour in Word using VSTO

浪子不回头ぞ 提交于 2019-12-20 03:53:22
问题 Fundamental question on how to get the bits to work together: I've not used VSTO before and after 4 hrs of searching I've decided to ask! I want to create a simple AddIn for word that will execute when the user saves ANY document. I thought all I would need to do would be to create an AddIn in VisualStudio 2008, and put my code in the ThisAddIn class Public WithEvents objWordApp As Word.Application Private Sub objWordApp_DocumentBeforeSave(ByVal Doc As Word.Document, ByVal SaveAsUI As Boolean

Will visual studio 2010 express support addins?

…衆ロ難τιáo~ 提交于 2019-12-19 20:36:16
问题 I know vs2008 express didn't. I'm hoping this will change with vs2010. Anyone know? Link me? Edit: Anyone have a primary source? While "As far as I know" answers can be helpful, in this case it still leaves a possibility - which is exactly where I started. 回答1: I don't know, but I would guess that it would not. Microsoft wants to make money, and supporting ad-ins is one of the biggest reasons to pony up the dough for the standard edition. Ad-in support alone can replace a lot of the stuff

Add tooltip to Excel Add-in Custom Ribbon UI XML

为君一笑 提交于 2019-12-19 02:09:13
问题 I am creating an Excel Add-In that has a custom Ribbon UI. I would like to add a tooltip for my buttons. What XML attributes can I use to set this? <button id="insertStuff" label="Insert Stuff" size="large" onAction="InsertStuff_EventHandler" imageMso="AddAccount" /> 回答1: You can use "screentip" and "supertip": <button id="insertStuff" screentip="Tooltip title" supertip="Long description" ... BTW, you should have autocomplete normally when you edit the ribbon XML in VS. If you don't make sure

Remove AddIn path from UDF in Excel formula

风格不统一 提交于 2019-12-18 08:59:05
问题 My addin was xla, now I use excelDNA, so it becomes xll, When I open spreadsheet built in previous version of My addin, for the UDF, it shows myUDF with path of xla. e.g "C:\Program Files\Installation folder\MyUDFs.xla!MyUDF", when I click Edit link and change source to "C:...\MyUDFs.xll" I got a pop up which says "Excel cannot update one or more links in this workbook. To update the links, open all the link source files(click Edit Links on the Data tab). To be sure all calculations are

Detect whether MS Office installed is 32bit or 64bit by using registry

本小妞迷上赌 提交于 2019-12-18 06:59:17
问题 I want to install vsto addin based on the excel version (32 bit or 64 bit). I am planning to bundle both 32bit and 64 bit msis and install one by determining the excel version. I am able to find this link to detect whether 2010 office is 32 bit or 64 bit by using registry. Detect whether Office is 32bit or 64bit via the registry But i want to check for excel 2007 and 2013 whether they are 32 bit or 64 bit. Is it possible to detect them via registry. 回答1: First, look for the installed version

VS addin: View markup. Does exist something like that?

前提是你 提交于 2019-12-18 06:49:39
问题 While working with ASP.NET using Visual Studio (2008) I have discomfort issue: source code editor context menu has only item ' View Designer ' but nothing about to view markup quickly! To see it you need to open Designer and click Markup label in the bottom of a window. Or use Shift+F7 hot key (by default). So I want to add an item menu ' View Markup ' in additional to ' View Designer '. I guess I have to use a Visual Studio add-in if it already exists or write it by myself. What do you think