Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/froque/vsixinteropformstoolkit

Command tool to generate interop wrapper classes.
https://github.com/froque/vsixinteropformstoolkit

com forms interop visual-studio visual-studio-extension vsix winforms

Last synced: 10 days ago
JSON representation

Command tool to generate interop wrapper classes.

Awesome Lists containing this project

README

        

# VSIXInteropFormsToolkit
Visual Studio extension, with command tool to generate interop wrapper classes. adapted from add-in.

[![Build Status](https://froque.visualstudio.com/VSIXInteropFormsToolkit/_apis/build/status/VSIXInteropFormsToolkit-.NET%20Desktop-CI?branchName=master)](https://froque.visualstudio.com/VSIXInteropFormsToolkit/_build/latest?definitionId=1&branchName=master)

* [VSIXInteropFormsToolkit in Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=filiperoque.VSIXInteropFormsToolkit)

See:

* [VB6 - C# Interop Form Toolkit](http://www.codeproject.com/Articles/15690/VB-C-Interop-Form-Toolkit)
* [Interop Forms Toolkit 2.0 Tutorial](http://www.codeproject.com/Articles/18954/Interop-Forms-Toolkit-Tutorial)
* [Microsoft InteropForms Toolkit 2.1](https://www.microsoft.com/en-us/download/details.aspx?id=3264)
* [Interop Forms Toolkit for C#](https://interoptoolkitcs.codeplex.com) (also imported to https://github.com/froque/interoptoolkitcs)
* [Similar extension in Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=MiguelLe.MicrosoftInteropFormToolsInteropFormProxyGenerator) ([source code](https://github.com/hurcane/Microsoft.InteropFormTools.InteropFormProxyGenerator))

### Microsoft InteropForms Toolkit 2.1 Documentation

* [Microsoft InteropForms Toolkit 2.1 Online Documentation](http://froque.github.io/VSIXInteropFormsToolkit/)

### Info
At present state this tool does not override files previously generated.
When forms with unsupported parameter types are found, the initialize method will be generated with a parameter with the root type "Object".

### Supported Environments

* Visual Studio 2015
* Visual Studio 2017
* Visual Studio 2019
* Visual Studio 2022

### How to Debug

Open project properties
- choose Debug
- In Start Action
- choose "Start external program"
- and write path to visual studio. (Ex: `C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe`)
- On Command line arguments "/rootsuffix Exp"
- Start application
- Create project in newly opened VS window
- Run tool

## Upgrade
* Update a Visual Studio extension](https://learn.microsoft.com/en-us/visualstudio/extensibility/how-to-update-a-visual-studio-extension?view=vs-2022)
* edit version in source.extension.vsixmanifest
* compile project
* upload .vsix file to [Visual Studio Marketplace](https://visualstudiogallery.msdn.microsoft.com/)

## Compile from console
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" /t:Restore "VSIXInteropFormsToolkit.sln"
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" /t:Clean /p:Configuration=Release "VSIXInteropFormsToolkit.sln"
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" /p:Configuration=Release /p:DeployExtension=false "VSIXInteropFormsToolkit.sln"