Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 2.5 KB

nuget.md

File metadata and controls

50 lines (33 loc) · 2.5 KB

Building and deploying Engine/Machine Nuget package

Prerequisite

Get nuget.exe and put it in your path C:\Windows\System32\ Note that the nuget.exe version MUST be 5.7.3 otherwise it won't work. You can download it from here: https://dist.nuget.org/win-x86-commandline/v5.7.3/nuget.exe

Building and deploying Machine Nuget package

Steps

  1. Open Powershell terminal in Engine's base solution directory.

  2. Switch to DEBUG configuration

  3. Build the solution

  4. Change the version number in the SIL.Machine.csproj by editing AssemblyInfo.props under he Imports folder.

  5. Build the project

  6. Open a terminal session in SIL.Machine/bin/debug which will contain the nuget package

  7. Execute nuget push .\Clear.SIL.Machine.<YOUR VERSION>.nupkg -ApiKey <YOUR KEY> -Source https://nuget.pkg.github.com/clear-bible/index.json

Building and deploying Engine Nuget package

Steps - Release build (This is the prefered way to build and deploy)

  1. Open Powershell terminal in Engine's base solution directory.

  2. Switch to Release configuration

  3. Build the solution

  4. Edit ClearBible.Engine.nuspec and change <version> to next version number

  5. Execute nuget pack .\ClearBible.Engine.nuspec -Build -Prop Configuration=Release to just create the *.nupkg

  6. Execute nuget pack .\ClearBible.Engine.nuspec -Symbols -SymbolPackageFormat snupkg to create both the *.nupkg and a *.snupkg

  7. Execute nuget push .\ClearBible.Engine.X.X.X.nupkg -ApiKey <YOUR KEY> -Source https://nuget.pkg.github.com/clear-bible/index.json

  8. To publish the symbol package, execute nuget push .\ClearBible.Engine.X.X.X.snupkg -ApiKey <YOUR KEY> -Source https://nuget.pkg.github.com/clear-bible/index.json

Steps - Debug build

  1. Open Powershell terminal in Engine's base solution directory.

  2. Switch to Debug configuration

  3. Build the solution

  4. Edit ClearBible.Engine.nuspec and change <version> to next version number

  5. Execute nuget pack .\ClearBible.Engine.nuspec -Build -Prop Configuration=Debug -Suffix debug to just create the *.nupkg

  6. Execute nuget pack .\ClearBible.Engine.nuspec -Symbols -SymbolPackageFormat snupkg -Suffix debug to create both the *.nupkg and a *.snupkg

  7. Execute nuget push .\ClearBible.Engine.X.X.X.Debug.nupkg -ApiKey <YOUR KEY> -Source https://nuget.pkg.github.com/clear-bible/index.json

  8. To publish the symbol package, execute nuget push .\ClearBible.Engine.X.X.X.Debug.snupkg -ApiKey <YOUR KEY> -Source https://nuget.pkg.github.com/clear-bible/index.json