Click here to Skip to main content
13,452,837 members (55,922 online)
Rate this:
Please Sign up or sign in to vote.
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.
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
Updated 29-Sep-12 6:18am
Kuthuparakkal 29-Sep-12 12:13pm
code plz
Meysam Tolouee 29-Sep-12 12:19pm
The question has been updated!

1 solution

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

Solution 1

What about adding project reference? See:[^]. 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).

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 |
Web03-2016 | 2.8.180318.3 | Last Updated 29 Sep 2012
Copyright © CodeProject, 1999-2018
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