Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends

I have created a class library in this directory:
E:\My Document\Uncompleted Project\Meysam

When I create another application, I will add the output of my library (Meysam.Library.dll) to the new application's references, from this directory:
E:\My Document\Uncompleted Project\Meysam\Meysam.Library\bin\Debug

The methods are not going to give me the correct output in new application.

It doesn't make sense, does it?

What can I check for fixing this?

For more info:
I call the below method in new application from my class library.
C#
public static bool IsPrime(int number)
{
    if (number < 2) return false;

    if (number == 2) return true;

    for (int i = 2; i <= System.Math.Sqrt(number); i++)
       if (number % i == 0)
           return false;

    return true;
}
Posted
Updated 29-Sep-12 6:18am
v2
Comments
Kuthuparakkal 29-Sep-12 12:13pm    
code plz
[no name] 29-Sep-12 12:19pm    
The question has been updated!

1 solution

What about adding project reference? See: http://msdn.microsoft.com/en-us/library/ez524kew.aspx[^]. If you other project is in an other solution you can add a project to multiple solutions also (but be aware to alter the shared one in a controlled manner).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900