Visual Studio 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".
- Visual Studio 2015
- Visual Studio 2017
- Visual Studio 2019
- Visual Studio 2022
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
- 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
"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"