Compilation problem when add reference of another dll

hello everyone.

I have created a Class Library "Calculator" in vB.net. it have one class "Calculation" Public. This class have two Methods, Sum, Multiply. (Public) and compiled using NANT with vbc option.
(only vb files).

Then I have Created a new VB Project Name "MyCalculator" and refered Calculation Class Library.
Calling that "Sum" method in Form.
When I compiled that project with NANT I got Error "Calculator.Calculation" is Not defined but when i Compile using VB.NET IDE it is successfully compiled and No errros comes out. 

so pls suggest me, why I got this error.

Thanks
LM

 

 



Answer this question

Compilation problem when add reference of another dll

  • Buckshag

    As I don't use nant I would think it could be a number of issues.

    • Namespace issues - Calculation.Calculation
    • Scoping - does the Class defined in Calculation have public / friend scope - if its not defined or private it may not be seing th calculation Class.
    • When Nant is compiling and its ultimately using the VB compiler - is it adding a reference to the Calculation class library you have created. If not then this may be why it isnt finding the class

    These are probably three of the things I'd check.


  • Compilation problem when add reference of another dll