Add compilation targets to new syntax

Can we add compilation targets in the new syntax as we did in the legacy?
If yes, how? As it gives an error when I tried doing it like the legacy method.

Support for “compilation targets” has been removed, as they added little value. Instead you can use a trivial scenario, like so:

s = sp.test_scenario()
s += main.MyContract()

You will find the Michelson output in