Add existing assembly to mvc 6 project

I am testing Visual Studio 2015 and playing with mvc 6, everything is fine, but when I try to add a link, only proyects are shown in the current solution, I already have an existing assembly and I want to add it, but I can’t see this parameter as add link to mvc 6 project to existing assembly?

+3


source to share


1 answer


I think Visual Studio 2015 is in preview and we cannot add the link we used for this Visual Studio 2013.

Now we add nuget package to web app (ASP.net 5 or say ASp.net MVC 6)

Now suppose you decided to create your own class library and I successfully created the library in another solution and added mvc 6 to my project.



Below is the step.

  • Create an ASP.net 5 Class Library project.
  • Implement your functionality and I added some classes.
  • After this step I publish the project to say the location of C: \ is published (during pre-compilation of publish option) Just like the image below enter image description here
  • After this step, if you visit the C: \ published location, it has a path like C: \ published \ approot \ packages.
  • Now install in Visual Studio 2015 the package preview for search. enter image description here
  • Now go to the project.json file of your mvc project. Add a link to your library. enter image description here

Hope this helps you.

+6


source







All Articles