DarkRiftNetworking / Hazel-Networking

Hazel Networking is a low level networking library for C# providing connection orientated, message based communication via TCP, UDP and RUDP.
http://www.darkriftnetworking.com
MIT License
206 stars 44 forks source link

NuGet Package? #2

Closed NimaAra closed 7 years ago

NimaAra commented 7 years ago

Hi,

Thank you for making this open source.

I understand the project is in beta but can you consider releasing a PreRelease NuGet package?

JamJar00 commented 7 years ago

I'll look into it, I don't use NuGet much so I'm not sure how much work it'll take!

NimaAra commented 7 years ago

It's as simple as 1, 2, 3! Here are the steps:

  1. Generate Nuspec file; (one-time only)
  2. Generate NuGet package;
  3. Upload to NuGet.

You might want to do the above manually or as part of a build/release process if you have any.

JamJar00 commented 7 years ago

Saw that link, I'll take a look over the weekend!

The main problem would be keeping it in sync with GitHub, I like that I can push updates straight from VS to here and not need to worry about any other steps. Looks like it's possible to automate it though.

NimaAra commented 7 years ago

yes, it is possible. Take a look at some of my repositories.

The idea is at any point that you are happy with your source on GitHub, you create a Release on GitHub, in doing so, you are capturing a snapshot of your code which you want to release, you then (as part of your automated build/release process) checkout the Release version that you have created, build it, package it and push it to NuGet.

This whole thing can be done easily on AppVeyor (it's free for open source projects).

JamJar00 commented 7 years ago

Well we have a NuGet link now!

It's not a pre-release one, I messed up the versions so it's marked itself as released!

NimaAra commented 7 years ago

Thank you for the quick turnaround.