Hi there,
I'm just trying to use the Builditems-Method as described but I still didn't get it to work.
By debugging I could trace the Problem to the "return asm.CreateInstance(instance);"-Line in the CreateInstance-Method of the Runtime-Class.
I get 'null' returned even if the instance-variable is a valid classname.
The use of the Builditems-Method looks like this:
ArrayList test = AddInTree.BuildItems("/Controllers/CampaignAdministration", null,true);
The Path looks like this:
<Path name="/Controllers/CampaignAdministration">
<Class id="GoogleAdwords"
class="Arcos.ERP.Addin.CampaignAdministration.GoogleAdwords"/>
</Path>
And the codon:
public class GoogleAdwords : AbstractCommand
{
public GoogleAdwords() {
lala = "mumu"; //The string-property is just here to test if the constructor is called
}
public string lala { get; set; }
public override void Run()
{
throw new NotImplementedException();
}
}
When checking the path in the addintree, the codon is perfectly registered.
Is there something additional i forgot?