Skip to content

Instantly share code, notes, and snippets.

View rsangeethk's full-sized avatar
🚀
Building

Sangeeth Kannan rsangeethk

🚀
Building
View GitHub Profile

Upload NuGet Package (.nupkg) to NuGet Feed with NuGet API v3 in C#

If you want to upload a NuGet package you downloaded, or maybe one you created yourself, to your company's NuGet feed, but that feed uses NuGet 3 instead of NuGet 2; fear no more. I will show you how to push that package to NuGet 3 feed in your app.

So in NuGet version 2, all you needed was to use the Nuget.Core package in your app, and with a few lines of code you could upload you're package to any version 2 feed. That is no longer the case in NuGet v3.

Below you will find a utility class that can download a NuGet package (given its id) and upload a NuGet package (given the .nupkg file) to NuGet v3 feed, using NuGet API v3:

@simonlk
simonlk / Woocommerce - output product variations in tab
Last active February 21, 2022 20:27
Output Woocommerce product variations as a table within a tab on the single product page
// Add to functions.php
/*===================================================
Created by sk from Renegade Empire with help
from these sources:
http://docs.woothemes.com/document/editing-product-data-tabs/
http://www.sean-barton.co.uk/2013/03/remove-woocommerce-20-reviews-tab/#.UYnWe7XfB6N
http://www.sean-barton.co.uk/2013/03/sb-add-woocommerce-tabs-wordpress-plugin/#.UYrYL7XfB6M