VB Migration Partner


Previous | Index | Next 

[HOWTO] Temporarily disable pragmas for debugging purposes

Migration pragmas are arguably VB Migration Partner’s most powerful feature. However, at times pragmas can interact with each other and create incorrect results. For example, a wrong regex pattern in the PreProcess or PostProcess pragma can introduce errors in the generated .NET code. As a matter of fact, it has happened quite frequently that VB Migration Partner generated incorrect results only because an improper PostProcess pragma was used.

To help our users and ourselves in sorting out the reasons why a given piece of VB6 code isn’t migrating correctly to .NET we have added the ability to disable all pragmas included in either the original VB6 code or in any *.pragmas file.

To temporarily disable all pragmas of any type, you must create a text file named VBMigrationPartner.fixes and store it in C:\ root folder. This text file should contain the following single line of text

The string that follows the = symbol is a regex that is applied to the pragma name, therefore you can disable pragmas in a more granular way. For example, you can disable just PreProcess and PostProcess pragmas using this text line:

Previous | Index | Next 

Follow Francesco Balena on VB6 migration’s group on


Read Microsoft Corp’s official case study of a VB6 conversion using VB Migration Partner.

Code Architects and its partners offers remote and onsite migration services.

More details

Subscribe to our free newsletter for useful VB6 migration tips and techniques.


To learn more about your VB6 applications, run VB6 Analyzer on your source code and send us the generated text file. You will receive a detailed report about your VB6 applications and how VB Migration Partner can help you to quickly and effectively migrate it to .NET.

Get free advice

A fully-working, time-limited Trial Edition of VB Migration Partner allows you to test it against your actual code

Get the Trial

The price of VB Migration Partner depends on the size of the VB6 application, the type of license, and other factors

Request a quote

Migrating a VB6 application in 10 easy steps

Comparing VB Migration Partner with Upgrade Wizard

Migration tools: Feature Comparison Table

All whitepapers