Update scripts to use correct root namespace
Better handling for C# error messages
Import Cobra.targets and tweak configurations