现有装配添加到一个MVC 6项目 [英] Add existing assembly to an mvc 6 project

查看:224
本文介绍了现有装配添加到一个MVC 6项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试的Visual Studio 2015年和MVC 6打球,一切都很好,但是当我尝试添加引用,只有在当前的解决方案proyects显示,我有一个现有的装配已经和我要添加,但我没有看到该选项,我怎么能引用到一个MVC 6项目添加到现有的装配?

I'm testing Visual Studio 2015 and playing with mvc 6, all is fine, but when I try to add a reference, only proyects in the current solution are shown, I have an existing assembly already and I want to add it, but I don't see the option, how can I add a reference to a mvc 6 Project to an existing assembly?

推荐答案

我想的Visual Studio 2015年是preVIEW,我们不能添加引用,我们用来做什么的Visual Studio 2013。

I think Visual studio 2015 is in preview and we can not add reference that we used to do it Visual Studio 2013.

现在开始,我们的NuGet包添加到Web应用程序(ASP.net 5或说ASp.net MVC 6)

For now onwards we add nuget package to Web Application ( ASP.net 5 or Say ASp.net MVC 6)

现在假设你决定建立自己的类库,我已经成功地创建库到另一种解决方案,并添加到我的MVC 6项目。

Now suppose you decided to build your own class library and I have successfully created library into another solution and added to my mvc 6 project.

以下是步骤


  1. 创建ASP.net 5类库项目。

  2. 实施你的功能和我刚才说几级。

  3. 这一步我出版项目说位置c之后:\\发表(出版过程中选择标记pre-编译)就像下面的图片

  4. 这一步之后,如果你访问的位置C:\\然后发表它拥有像C路径:\\公布\\为approot \\包

  5. 现在,程序包能够搜索设置以下的事情在Visual Studio 2015年preVIEW。

  6. 现在,去project.json你的MVC项目的文件。添加引用到库中。

我希望这帮助你。

这篇关于现有装配添加到一个MVC 6项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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