Giter Site home page Giter Site logo

nugetpackages's Introduction

NuGetPackages

Our collection of home-made NuGet packages :)

NuSpec

Simply run Install-Package NuSpec (once for the solution, doesn't matter which project) to get a set of extra cmdlets available in the NuGet Package Manager Console. The cmdlets in this package rely on the NuGet "Enable Package Restore" feature, which adds a .nuget folder in the solution directory containing the nuget.exe command line tool and nuget.targets MSBuild file.

Available cmdlets: Install-NuSpec, Enable-PackagePush

Creating the package and auto-build

Install-NuSpec <ProjectName> [-EnablePackageBuild]

Adds a tokenized .nuspec file to the target project(s). Use the -EnablePackageBuild swicth to automatically build the nuget package when building the project.

Auto-pushing the package and symbols

Enable-PackagePush <ProjectName>

Will install a NuGet.Extensions.targets MSBuild file and set the <PushPackage>true</PushPackage> MSBuild property in the target project(s).

You can tweak package versioning in the MSBuild.ExtensionPack.VersionNumber.targets file, located under $(SolutionDir).nuget\MSBuildExtensionPack. This is based on the MSBuild ExtensionPack SetVersionNumber target.

Don't forget to set the target feed URL for the packages and symbols, including the API key, in the NuGet.Extensions.targets file.

Done? Remove the dependency...

There's not much value in keeping the NuSpec package dependency around after setting up this automation, so feel free to simply remove it using Uninstall-Package NuSpec.

nugetpackages's People

Contributors

mastoj avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.