Visual Studio 2015 extension, with command tool to generate interop wrapper classes. adapted from add-in.
See:
- VB6 - C# Interop Form Toolkit
- Interop Forms Toolkit 2.0 Tutorial
- Microsoft InteropForms Toolkit 2.1
- Interop Forms Toolkit for C# (also imported to https://github.com/froque/interoptoolkitcs)
- Similar extension in Visual Studio Marketplace (source code)
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".
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
- How to: Update a Visual Studio Extension
- edit version in source.extension.vsixmanifest
- compile project
- upload .vsix file to Visual Studio Marketplace
nuget restore VSIXInteropFormsToolkit.sln
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /t:Clean /p:Configuration=Release "VSIXInteropFormsToolkit.sln"
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" /p:Configuration=Release "VSIXInteropFormsToolkit.sln"