Categories
Automation Programming Visual Studio

Restore Private NuGet Feed Packages During Visual Studio Team Services Build

Update! As of February 2016, you should be able to use the standard “NuGet Installer” vNext build task. The New Way Add the Nuget Installer build task, which can be found under “Add build step” -> “Package”. You will need to supply a NuGet.config file with the address of your custom feed: <?xml version=”1.0″ encoding=”utf-8″?> […]

Categories
Visual Studio

Stop Visual Studio Prompting For NuGet Feed Credentials

With the imminent arrival of Visual Studio Online Package Manager, which lets us host NuGet (and other) packages on our Visual Studio Online account, it is almost certain that you are going to lose the plot when managing NuGet packages in Visual Studio and keep getting prompted for your account details (especially as the “Remember […]

Categories
Automation Programming Visual Studio

Using Visual Studio Online PowerShell Build Step To Publish NuGet Package

Update! As of February 2016, you can now use the ready-made vNext NuGet Publisher step to do this and it is even easier. The New Way Add a new vNext build step using “Add build step…” -> Package -> NuGet Publisher. Select “Internal NuGet Feed” and paste in your feed url – job done. With […]

Categories
Programming

Exclude NuGet Package Dependency From NuGet Package

I have been using the Create New NuGet Package utility for auto-generating NuGet packages for some time. You add this as a NuGet package to your project and It Just Works™. It uses your assembly information to generate the metadata so you don’t even need a nuspec file. The one thing you will want to […]

Categories
Programming Visual Studio

NuGet Packager Visual Studio Extension

This is a quick article that describes how to use the ace NuGet Packager Visual Studio Extension. Step One Download NuGet Packager using Tools > Extensions and Updates > Online (search for “NuGet Packager”). Step Two Add a new project to your solution, ideally name it exactly as you want your package to appear on […]

Categories
Programming

Use NuGet to Satisfy Open Source License Conditions

If you haven’t started grabbing useful stuff via NuGet, you’re missing out. It is rare these days to find a .NET project that doesn’t have a bunch of NuGet packages to provide useful features such as JSON parsing or JavaScript frameworks or some other productivity enhancing library. And it is all mostly free and open-source! […]

Categories
Programming Visual Studio

Share Your Own Code With NuGet

Update: you can also use the NuGet Package Visual Studio Extension – it works similarly to the New-NuGet Package code described in this article, but keeps all of the NuGet stuff in a separate project (which is supplied as a project template type of NuGet Package). On release build, it will publish to your preferred […]