Convert to use Litium NuGet packages

Convert your solution to use Litium NuGet packages for easy upgrades.

Follow these steps in Visual Studio after loading your solution.

  1. Open NuGet Package Manager Console; Menu: Tools\NuGet Package Manager\NuGet Package Manager Console.
  2. Execute the following command in NuGet Package Manager Console to download the convert to nuget script
    (new-object Net.WebClient).DownloadFile("https://nuget.litium.com/tools/ConvertToNuget.ps1",  (((get-location).Path) + "\LitiumConvertToNuget.ps1"))
  3. Execute the following command in Nuget Package Manager Console to begin the conversation to use nuget packages
    ./LitiumConvertToNuget.ps1

Advanced users

When you run the LitiumConvertToNuger command in the NuGet Package Manager Console, Litium will be updated with the default packages for everything. From dependency injection and logging to search library. If you have replaced any of the infrastructure components in Litium and want to update the solution to use NuGet you should follow these steps in Visual Studio instead of the above instructions.

  1. Open NuGet Package Manager Console; Menu: Tools\NuGet Package Manager\NuGet Package Manager Console.
  2. Execute the following command in NuGet Package Manager Console to download the convert to nuget script
    (new-object Net.WebClient).DownloadFile("https://nuget.litium.com/tools/ConvertToNuget.ps1",  (((get-location).Path) + "\LitiumConvertToNuget.ps1"))
  3. Execute the following command in Nuget Package Manager Console to begin the conversation to use nuget packages
    ./LitiumConvertToNuget.ps1 -CoreOnly

The above command will only update your solution to use NuGet, but no infrastructure packages are added. For each project that is using an infrastructure package you need to add either your own replacement for the package or the package itself. All the commands are executed in the NuGet Package Manager Console. You select the project in the dropdown in top of the NuGet Package Manager Console.

Install-Package Litium.Infrastructure.InversionOfControl
Install-Package Litium.Infrastructure.Logging.NLog
Install-Package Litium.Infrastructure.Logging.NLog.Extensions
Install-Package Litium.Infrastructure.Search.Lucene
Install-Package Litium.Infrastructure.WebLog.Exceptional
Is this page helpful?
Thank you for your feedback!