Showing related tags and posts accross the entire site.
-
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...
-
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...
-
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...
-
Overview: The VSTA v 2 ProxyGen tool creates proxy files designed to work with the updated C# compiler in Visual Studio 2008. It is possible to modify this file to compile with Visual Studio 2005 and we offer a Visual Studio macro to automate these changes. Attached macro: The zip file attached includes...