Giter Site home page Giter Site logo

steviecoaster / nuget-chocolatey Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chocolatey/nuget-chocolatey

0.0 2.0 0.0 49.05 MB

NuGet Enhanced for Chocolatey

License: Apache License 2.0

Shell 0.01% JavaScript 19.32% C++ 1.90% C 0.01% C# 70.51% F# 0.01% PowerShell 3.36% Forth 0.01% CSS 4.07% Pascal 0.01% HTML 0.12% Batchfile 0.03% Rich Text Format 0.47% Visual Basic .NET 0.03% ASP.NET 0.19%

nuget-chocolatey's Introduction

NuGet Enhanced for Chocolatey

This repository contains a forked version of NuGet, which has been enhanced to work with Chocolatey, the Package Manager for Windows.

This includes, for example, modifications to the nuspec file to include additional properties that are specific to how Chocolatey works.

Building

To build the project, run:

build.cmd

This will generate release binaries for NuGet.Core in the following folder:

src\Core\bin\Release

These will include:

  • Microsoft.Web.XmlTransform.dll
  • NuGet.Core.dll
  • NuGet.Core.pdb

Packaging

To create a NuGet package which can then be consumed within the chocolatey/choco project, follow these steps

  • Build the solution
  • Copy all files from src\Core\bin\Release into the nuget\Chocolatey-NuGet.Core\lib\net4 folder. NOTE: If this folder doesn't exist, create it.
  • Navigate to the nuget folder in a PowerShell session
  • Run the following command .\strongname.cmd
  • This will ensure that the NuGet.Core.dll is strong name signed, which is a requirement for all assemblies referenced by the Chocolatey project.
  • Copy the files from the output folder into the nuget\Chocolatey-NuGet.Core\lib\net4 folder
  • Delete the Microsoft.Web.XmlTransform.dll file from the nuget\Chocolatey-NuGet.Core\lib\net4 folder
  • Run the following command to create a NuGet package nuget pack .\Chocolatey-NuGet.Core.nuspec -Version 2.11.0.<insert_date_here> where insert_date_here is todays date, in the format yyyymmdd, i.e. 20210105 which would be 5th January 2021
  • Push this package to internal NuGet repository
  • Run the following command in chocolatey/choco repository to bring this package into the lib folder there nuget install Chocolatey-NuGet.Core -Source <URL_to_repository>, and then manually update the csproj files to target new location in lib folder.
  • Delete previous Chocolatey-NuGet.Core folder from lib folder
  • Build chocolatey/choco and ensure everything is working as expected

nuget-chocolatey's People

Contributors

dotnetjunky avatar davidfowl avatar pranavkm avatar deepakaravindr avatar osbornm avatar emgarten avatar analogrelay avatar drakomeep avatar jeffhandley avatar ferventcoder avatar gregvdb avatar half-ogre avatar ranjinim avatar danliu avatar gep13 avatar marcind avatar xavierdecoster avatar dontjee avatar broggeri avatar dsplaisted avatar filipdevos avatar thecakeisnaoh avatar adamralph avatar damianedwards avatar jopdam avatar sarkie avatar derigel23 avatar benphegan avatar martincostello avatar bajtos avatar

Watchers

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.