Skip to content

Instantly share code, notes, and snippets.

@mrvux
mrvux / NugetRepository.cs
Created October 18, 2017 15:37
Simple local nuget repository cheat sheet, create/add/list/search/install and uninstall packages
/* Simple example to use a few nuget core functions to manage a local repository
*
* Example needs System.Windows.Forms reference, as well as Nuget.Core nuget reference.
*
*/
using NuGet;
using System;
using System.Collections.Generic;
using System.Linq;
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Author>Julien Vulliet (julien@mrvux.com)</Author>
<Description>Snippet to create a simple domain primitive</Description>
<Title>Domain Primitive</Title>
<Shortcut>domainPrimitiveClass</Shortcut>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>