Giter VIP home page Giter VIP logo

nugets's Introduction

NuGets

I mostly did it to avoid having to patch each of my libraries on all the projects that share them, they may not be perfect yet but i keep working on them...

I have no template for issues or anything, if you find any errors just open an issue (the more specific you are about the error the easiest for me to fix it), i'll try to check it as soon as i can.

If you find any of this stuff usefull i'ld like to know

Building the nugets

To build every nuget you have to run the following command on the solution folder

setlocal enabledelayedexpansion

for /d %i in (*) do ( 
    cd "%i" 
    dotnet pack --configuration release --include-source --output ..\NugetBuilds\
    cd .. 
) 

you can also build a single package by executing the following command in it's project folder

dotnet pack --configuration release  --include-source --output ..\NugetBuilds\

there's 2 flags that can help with the debugging process if something fails which are

--include-symbols => debug info
--include-source => debug info + source code

I included the second on the previous commands

Pushing nuget packages into a nuget server

For single package

dotnet nuget push --source http://127.0.0.1:8080/v3/index.json --api-key TestApiKey --skip-duplicate [package name]

remember to change [package name] with the name of the package that you wanna upload.

For several packages

The following script will try to upload all the nuget packages contained in the directory

setlocal enabledelayedexpansion
for /R %%G in (*.nupkg) do ( 
    dotnet nuget push --source http://127.0.0.1:8080/v3/index.json --api-key TestApiKey --skip-duplicate "%%G"
)

Remember to change the souce and the api key.

Cleanup

If you wanna copy the repository into anyplace or you just wanna make sure that you are making a clean build you can execute the following commands which will delete all the compilation caches.

for /F "tokens=*" %G in ('DIR /B /AD /S bin') do RMDIR /S /Q "%G"
for /F "tokens=*" %G in ('DIR /B /AD /S obj') do RMDIR /S /Q "%G"

Static Nuget Server Setup

https://insomnyawolf.github.io/NuGets/#setup-your-feed

Final notes

To whoever is reading this => Have a nice day!!

nugets's People

Contributors

insomnyawolf 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.