In this article we will see how to create a NuGet Package after each build and push the package to NuGet in Visual Studio 2013.
In this article we will see how to create a NuGet Package after each build and push the package to NuGet in Visual Studio 2013.NuGetNuGet is a Visual Studio extension that makes it easy to pull in libraries, components and most importantly their configuration into your Visual Studio project. This is a tool that is installed with MVC 3 and it is used to bring in various components to make developing on MVC easier. These components are called NuGet Packages and they can include .NET assemblies, JavaScript files, HTML/Razor files, CSS files, images and even files that can add configuration to your project's web.config. The goal of NuGet is to make it super-easy to bring in or update a component in your existing projects.More info: Using NuGet Packages.First of all let's make an MVC project.Getting Started
In this small sample I am building CRUD operations using Entity Framework.Model classes:
Push Package to NuGet GalleryRight-click on RunMeToUploadNuGetPackage under the _CreateNewNuGetPackage folder and click Run. Image 7If you don't see the Run command then download and install, you can get this functionality by installing the VSCommands Visual Studio extension; otherwise you will need to run the batch file from the Windows/File Explorer. Image 8 Image 9.Make sure that when you build the application there is no error that occurrs.* Image 10You can see your package list on: Nuget after logging in on my packages. Image 11You can search online on the Nuget package using the name. Image 12Note: You need to provide the NuGet ApiKey that is available in my account when you login into the Nuget website. Image 13ConclusionIn this article we have learned how to create a NuGet Package and how to push that package to the NuGet Gallery.
Pro WPF: Windows Presentation Foundation in .NET 3.0