Recently I’ve been messing around with the new .NET Core.
I’ve created a class library which I’m using in an ASP.NET Core Web API.
Firstly, at least before 1.1, I couldn’t add a reference to the class library just by giving it the .dll file. I needed to create a NuGet package of my library and publish it to a NuGet feed. I set up a local NuGet feed and added it as a source in VS and were able to add my code. This is all fairly easy.
Instructions on how to create a NuGet package can be found here: https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package
And how to set up a local NuGet feed: https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds
After a while I did some changes to the library and wanted to update the package in my Web API project as well.… continue reading