What is NuGet?
NuGet is the package manager for .NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery is the central package repository used by all package authors and consumers. We can easily update any dll at any time and also removes the dependency of keeping these files locally.
Sitecore NuGet
Sitecore has also released their NuGet library what we can use for reference as per here.
How we can add Sitecore Assemblies to .NET Project?
1. By default NuGet package manager connects with NuGet.org.
2. We can't add Sitecore Assemblies from NuGet.org. So, we would need to add another source in package source.
3. Click settings icon, this wizard will allow you to add other NuGet library reference.
4. Click on + icon.
5. Enter Sitecore in Name and "https://sitecore.myget.org/F/sc-packages/api/v3/index.json" in Source
6. You can update any time if Sitecore updates NuGet feed url.
7. You will be able to get all Sitecore Assemblies as per your SC version.
8. It has assemblies since Sitecore 7.2 version.





Comments
Post a Comment