locked
Error referencing other assemblies RRS feed

  • Question

  • Hello!

    I've made an "Activity Library" project.

    I'm referencing other assemblies from this project.

    Unfortunately I'm receiving complaints that the given namespace does not exist in the editor and the compilation fails,

    Concerning conventional class libraries everything works fine.

    Do you know if there is such a kind of flaw in Beta 2 and if there's a way to get around it?


    Best regards,

    Henrik Dahl
    Sunday, November 8, 2009 10:08 AM

Answers

  • Hi Henrik,

    I tried your repro in Beta2, and it works fine. Have you tried Import designer besides variable and argument designer to import the namespace?

    Here is my repro:
    I created an "Activity Library" and referencing another "Class Library" project. In the "Class Library" project, there is a class D under namespace A.B.C. In the "Activity Library" project, I added a sequence, and use Import designer to import namespace "A.B.C", and create a variable D. In the sequence, I added an Assign, and use D.property1 in Assign activity, and it works fine.

    Hope it helps,
    Thanks,
    Jian
    Tuesday, November 10, 2009 7:42 AM

All replies

  • I have tried this and it works fine to me. I have an Activity Library project that references a non-framework assembly, and both editor and compilation work fine. Are you experiencing this as well in Beta 1? What is the compilation or editor error you get?
    Monday, November 9, 2009 8:41 PM
  • Amadeo,

    I've not tried it with Beta 1.

    I have an assembly I reference defining classes in the namespace A.B.C.D, i.e. A.B.C.D.MyClass.

    The complaint is that the namespace C does not exist.


    Best regards,

    Henrik Dahl
    Monday, November 9, 2009 9:30 PM
  • Hi Henrik,

    I tried your repro in Beta2, and it works fine. Have you tried Import designer besides variable and argument designer to import the namespace?

    Here is my repro:
    I created an "Activity Library" and referencing another "Class Library" project. In the "Class Library" project, there is a class D under namespace A.B.C. In the "Activity Library" project, I added a sequence, and use Import designer to import namespace "A.B.C", and create a variable D. In the sequence, I added an Assign, and use D.property1 in Assign activity, and it works fine.

    Hope it helps,
    Thanks,
    Jian
    Tuesday, November 10, 2009 7:42 AM
  • Jian,

    Yes, yes, it also works if the whole everything consists of this in my case. There's presumably something which is causing it not to work and I don't know what it is because Visual Studio provides no information on this.


    Best regards,

    Henrik Dahl
    Tuesday, November 10, 2009 7:53 AM