如何通过将一个项目的引用添加到另一个项目中,将一个项目的功能用于另一个项目。 [英] How can use features of one project into another project by adding reference of one project into another project.

查看:245
本文介绍了如何通过将一个项目的引用添加到另一个项目中,将一个项目的功能用于另一个项目。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,


我有一个完整的项目,我想将其所有功能导入到新创建的另一个项目中。为此我刚刚将第一个项目dll添加到第二个项目中。在第二个项目MainPage我有一个按钮,单击此按钮后,我们需要打开第一个项目
,并需要通过引用第一个项目的dll访问其所有功能。对于这个按钮点击我编写的代码。

 NavigationService.Navigate(new Uri(" / LiveTv; component / LoginPage.xaml",UriKind.Relative)); 

代码没有打开第一个项目页面。


请帮助我如何通过第二个项目访问第一个项目的所有功能只需添加第一个项目dll的引用而不将整个项目添加到第二个项目中。


请帮帮我。

解决方案

< blockquote>如果您已添加第一个项目的引用,那么您应该能够从第二个项目导航到第一个项目中的页面。确保你的Uri是正确的。


Hello All,

I have a complete project and i want to import all its features into new created another project. For this i just added first project dll into second project. In second project MainPage i have a button and after click this button we need to open first project and need to access all its features by reference dll of first project. For this i written code in button click .

NavigationService.Navigate(new Uri("/LiveTv;component/LoginPage.xaml", UriKind.Relative));

Code is not opening the first project page .

Please help me how can i access all features of first project into second project by just adding the reference of first project dll without adding whole project into second project.

Please help me.

解决方案

If you have added the reference of first project then you should be able to navigate to page in first project from second project. Make sure your Uri is correct.


这篇关于如何通过将一个项目的引用添加到另一个项目中,将一个项目的功能用于另一个项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆