add-in

Writing an Addin or Plugin Framework in C#

笑着哭i 提交于 2019-12-03 15:25:05
I am writing an Addin Framework in C# and I'm wondering how I can make Addin's unloadable without requiring a restart of the application. I heard of AppDomains but how do these work? Can an Addin add extendability classes and be called in the Main AppDomain by Interfaces and still be unloadable and call cleanup code resulting in those classes being removed without that Assembly being in the Main AppDomain? Or are there other methods of achieving unloadable addins, but IIRC other then AppDomain's you cannot unload an Assembly. I also want the addin engine to be compatible with Mono if possible,

Creating new Excel formulas/functions with C#

前提是你 提交于 2019-12-03 15:23:33
We are looking to be able to programmatically create an Excel workbook which would call custom code from within a cell. Cells would look something like: =MyCode(A1:A10) My first thought was to use VBA, but since the algorithm is proprietary the powers that be want it to be protected. I can put a password on it, but it is well documented (here on StackOverflow) on how to get around such passwords. My second thought was to create an Excel 2013 Workbook project in Visual Studio, but I haven't found anything useful on how to expose a function in C# so it can be called like I described. Next I

Office add-in ribbons: same tab with 2 addins

吃可爱长大的小学妹 提交于 2019-12-03 12:51:22
I'm trying to make two word add-ins' groups to appear in the same tab (Tools) but they both create unique tabs (there's two 'Tools' tabs). I saw this video but I'm using the Visual Designer, not XML. Can I edit the designer code in some way to make this work? http://blogs.msdn.com/b/vsto/archive/2008/03/10/share-a-ribbon-customization-between-office-applications.aspx Office 2007 Create the Ribbon Create a 2007 Excel, Outlook, PowerPoint, or Word project in Visual Studio. For the purpose of these steps, create a C# project and name the project RibbonStarterProject. Add a Ribbon (Visual Designer

Is it possible to refresh WCF service reference from VS2010 addin?

孤街浪徒 提交于 2019-12-03 12:29:29
问题 I want to "simulate" the Right click/Update service reference command in a VS2010 addin. I have a reference to the containing (Silverlight...) project, I know the name of the service reference and the url of the service. I've found this: http://dedjo.blogspot.com/2007/03/adding-web-references-to-your-vs.html , but it only works for asmx (it uses System.Web.Services instead of System.ServiceModel), not wcf. Is there any choice but call svcutil from code? if so, how? (do I use svcutil or

XLL Excel addin in unmanaged C++

霸气de小男生 提交于 2019-12-03 11:15:32
I have a few mathematical simulations in unmanaged C++ and now I need to integrate them with Excel (so that it is possible to call the functions from Excel and get the values back). I don't want to use any VBA, so I guess I have to implement an XLL addin. I would like to use as few third party additional frameworks as possible. Could someone point me to a good tutorial? Starting out with the SDK can be a bit unpleasant. I'd suggest you try one of the toolkits: XLW ( http://xlw.sourceforge.net/ ) is a standard open-source C/C++ wrapper. Keith Lewis's NXLL library ( http://nxll.codeplex.com/ )

Where should a Visual Studio Add-in store its settings?

℡╲_俬逩灬. 提交于 2019-12-03 11:04:35
问题 Currently I'm storing the settings for my custom addins in the registry but this seems like a kludge. I was wondering if there was an official place to store add-in settings. My preference would be to store them where Visual studio stores settings so they can be exported and imported easily. Is it possible to store add-in settings with Visual Studio settings or is there a better way? 回答1: EDIT My original answer to this topic had a couple of issues I discovered after years of using it. I've

problem with trying to create ssms add-in

谁说我不能喝 提交于 2019-12-03 08:48:13
I'm trying to create an add-in for SSMS 2008 and/or 2008 R2 but I've run into a problem straight away. I can get my add-in to work and on SSMS start-up get it to simply show a message box. However, after downloading various code-samples, when trying to reference Microsoft.SqlServer.Management.UI.VSIntegration.ServiceCache I get a null reference exception: Commands2 commands = (Commands2)ServiceCache.ExtensibilityModel.Commands; I get this problem when using SSMS 2008 or SSMS 2008 R2. I'm working on Visual Studio 2010. It's a bit frustrating because I'm keen to learn more about SSMS add-ins but

A Scrollable MessageBox in C#

你离开我真会死。 提交于 2019-12-03 08:34:26
I use Addin in VS2008, C#, and I need show messages (error messages and others). I don't know the length of messages, and therefore I want use Scrollable MessageBox. I have found this article from 2007 year: By Mike Gold July 30, 2007 http://www.c-sharpcorner.com/UploadFile/mgold/ScrollableMessageBox07292007223713PM/ScrollableMessageBox.aspx now, in 2011 any another good components ?? I want evaluate several components about it. Update: another component but older: MessageBoxExLib http://www.codeproject.com/KB/dialog/MessageBoxEx.aspx A customizable .NET Winforms Message Box. http://www

Visual Studio dump all properties of class into editor

≡放荡痞女 提交于 2019-12-03 07:41:45
Ok, here is one for the people that have lots of handy little add ins for visual studio, or can help with a keypress sequence. Let's say I have a Person class: class Person { string Name { get; set; } int Age { get; set; } } And I'm busy coding away happily. I often get the situation where I need to assign values to all the properties of that class, or assign all the values of the properties to something else. public override void CopyTo(Person myPerson) { myPerson.Name = "XXX"; myPerson.Age = 11; } I would like to generate this part: myPerson.Name myPerson.Age I.e. Just dump all the

Visual Studio add-on gallery?

喜夏-厌秋 提交于 2019-12-03 07:30:55
i'm hoping to find some add-ons for Visual Studio to address some specific usability issues. Is there a Visual Studio addons gallery that contains a huge dumping ground of addons that every person, company, yahoo and hick have created? Kind of like Vista Sidebar Gadget gallery , but for addons. Kind of like CodePlex , but for addons. Is Visual Studio Gallery it? Not that it's important to my question, but some of the IDE functionality i was hoping to see addressed through addons: tabs are placed in chronological open order renaming a control renames attached event handlers deleting all code