Because the version 3 is a full API rewrites, and used namespaces, your old code cannot migrate without a little change.

We will try to explain how to do in few steps.

CLI

Begin first with the commands of CompatInfo in CLI mode.

XML

How you can customize CompatInfo in CLI mode only.

API

Due to namespaces, API are incompatible in versions 2 and 3. Here are code to do the same things.