richardszalay / pshosts

PowerShell cmdlets for modifying the hosts file on Windows, Linux, and macOS
MIT License
119 stars 18 forks source link

.net standard #15

Closed neutmute closed 7 years ago

neutmute commented 7 years ago

Hi Richard - I'd like to convert your c# Hosts assembly to .NET standard 1.x (whatever the lowest is supported). I'd also like this to be published as a nuget package. I'd control the nuget package publish via an environment variable so that you could set the api key on your build server and have it publish under your account.

Would you be open to a PR making these changes?

The reason for these requests is I have a dot net core app to help provision servers in my Octopus deploy pipeline. I need to hack the hosts file of the server programmatically.

richardszalay commented 7 years ago

Hi @neutmute,

Interesting proposal. I had considered releasing the core library on NuGet but never got around to it.

I'd be happy to accept a PR, as long as:

As a low-fi alternative, you can also copy the code into your library (it's only a few files, and they could be combined).

Rich

neutmute commented 7 years ago

Yeah ok - does seem like a lot of work for a few files :) I'll roll with the low fi - thanks!