我可以检查些什么来解决此问题? [英] What can I check for fixing this?
本文介绍了我可以检查些什么来解决此问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友
我在此目录中创建了一个类库:
Hello friends
I have created a class library in this directory:
E:\My Document\Uncompleted Project\Meysam
当我创建另一个应用程序时,我将从以下目录中将库的输出(Meysam.Library.dll)添加到新应用程序的引用中:
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;
}
推荐答案
添加项目引用怎么办?请参阅: http://msdn.microsoft.com/en-us/library/ez524kew.aspx [ ^ ].如果您的其他项目在其他解决方案中,则您也可以将一个项目添加到多个解决方案中(但要注意以受控方式更改共享的项目).
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).
这篇关于我可以检查些什么来解决此问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文