Browse Blog Posts by Tags
-
With VSTA v 2 it is possible to use generic parameters of intrinsic types with minimal effort. The example below demonstrates this with a method added to the ShapeApp.Application class which accepts a List<string>. Steps: 1) Create the proxy file ignoring the ProxyGen warnings: ProxyGen.exe Warning...
-
We have new downloads up including templates and a new tool AutoProxyGen which automates ProxyGen and can be used in build events. AutoProxyGen : This tool automates the process of using ProxyGen and can be used as a build event. AutoProxyGen includes workarounds for ProxyGen bugs including automatically...
-
The sample in this post shows how to support nested types and implicitly declared events in entry point classes (note that the nested type is in the entry point class, but is not an entry point). For types nested in an entry point class, the workaround in Part I is sufficient, no additional changes to...
-
ProxyGen does not support nested types; however, with a little manual editing of the descriptor and proxy files nested types can be supported in the Proxy. There are three kinds of nested types that will be covered in this blog series (non-entry point, entry point , and i mplicitly declared events )...
-
The proxy and host type map provider code files generated by ProxyGen in VSTA v 2 are not indented. Here's an easy fix. 3 ways to fix indentation: 1) Through the menu: Edit -> Advanced -> Format Document 2) Using short cuts: Ctrl + K then Ctrl + D 3) In a macro: DTE.ExecuteCommand("Edit.FormatDocument...
-
Microsoft recommends using Visual Studio 2008 for integrating VSTA v 2. However, if you choose to use Visual Studio 2005 the following will need to be addressed. 1) The framework VSTA v 2 uses the 3.5 framework. It is very important that references, like System.AddIn, point to the 3.5 versions and not...
-
One of the most common questions we see when someone begins an integration is why can't System.Windows.Forms and objects derived from that class be exposed to add-ins. Our typical answer is that System.Winows.Forms is not serializable and only serializable objects can pass through (or be exposed through...
-
Based on the SDK and our testing of the CTP release version of ProxyGen v 2, here are our finding. For additional informatoin on ProxyGen v 2 CTP release please see our ProxyGen v 2 CTP Release Supplement . If there are other version 1 issues you would like addressed, please let me know (submit questions...