Click here to Skip to main content
12,352,294 members (61,317 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0 DLL
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.
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 29-Sep-12 6:09am
Edited 29-Sep-12 6:18am
v2
Comments
Kuthuparakkal 29-Sep-12 12:13pm
   
code plz

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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).
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 29 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100