I am learning ASP.NET Core 1.0 (vNext). With that in mind, I have a solution that is structured like this:
MySolution src MyLibrary MyClass.cs project.json MyWebSite Startup.cs project.json I am successfully compiling MyLibrary from the command-line using dnu build. I ran dnu pack which generated MyLibrary.1.0.0.nupkg. There are also two folders: dnx451 and dnxcore50 which both contain MyLibrary.1.0.0.dll. I want to use MyLibrary in MyWebSite, however, I'm confused.
- How do I "include"
MyLibraryintoMyWebSite? Do I manually copy over the.dllfile? If so, which one? Should I use thenupkgfile instead? This is a private assembly, I do not want to publish it globally via NuGet. - What do I put in
MyWebSite/project.jsonto reference theMyLibraryassembly?
