Run NuGet Server as a Windows service.
version |
release date |
|
---|---|---|
release |
||
(pre-)release |
- Windows OS
- .NET Framework 4.6.1
- Build solution in
Release
mode. - (Optional) Copy all files and folders inside
bin\Release
to somewhere. - Go to
Release
folder (or place where you've copied these fileds) and opencmd
orpowershell
here. - Run file
install.cmd
. Now, the server is running athttp://localhost:9028/
. Open brower and go tohttp://localhost:9028/nuget
to verify.
To configure your service, open configuration file (App.config
) and edit these settings:
<appSettings>
<!-- The port your service will be run on. -->
<add key="port" value="9028" />
<!-- Default NuGet.Server settings. -->
<!-- See this article: https://docs.microsoft.com/en-us/nuget/hosting-packages/nuget-server). -->
<add key="packagesPath" value="C:\.LocalNuGet" />
<add key="requireApiKey" value="false" />
<add key="apiKey" value="" />
<!-- ./Default NuGet.Server settings. -->
</appSettings>