note improvements

master
Tudor Stanciu 2025-03-19 01:52:32 +02:00
parent ff2c7b7edf
commit 040433497a
1 changed files with 9 additions and 9 deletions

View File

@ -1,9 +1,9 @@
How to create nuget package from project: How to create a NuGet package from a project:
1. Check properties from Directory.Build.props. Increase version 1. Check the properties in Directory.Build.props and increase the version.
2. Check properties from project. Right click on project -> Properties -> Package 2. Check the properties in the project. Right-click on the project -> Properties -> Package.
3. Select Release for build 3. Select Release for the build configuration.
4. Right click on project -> Pack 4. Right-click on the project -> Pack.
5. Search for package in bin/Release folder. Ex: Netmash.Hosting.WindowsService.1.0.0.nupkg 5. Find the package in the bin/Release folder. Example: Netmash.Hosting.WindowsService.1.0.0.nupkg.
6. Push the package 6. Push the package:
6.1 Open a console in package folder and run "dotnet nuget push <package_name> -k <key> -s <nuget_server_url>" 6.1. Open a console in the package folder and run: "dotnet nuget push <package_name> -k <key> -s <nuget_server_url>".
6.2 Ex: dotnet nuget push Netmash.Hosting.WindowsService.1.0.0.nupkg -k key -s http://<nuget_server_url>/nuget 6.2. Example: dotnet nuget push Netmash.Hosting.WindowsService.1.0.0.nupkg -k <key> -s http://<nuget_server_url>/nuget.