Skip to content

Release nuget packages

Alexey Sadomov edited this page Jul 7, 2024 · 5 revisions

This page describes how to release Camlex nuget packages:

  1. Copy new dll to separate folder. For client version build in Release (SP Online), Release15 (SP2013), Release16 (SP2016), Release19 (SP2019). Each build has 3 output assemblies targeted for net5.0, net452 and netstandard2.0. Copy them all to the following folders structure:
camlex.client_x.x.x.x_15
  lib
    net5.0
    net452
    netstandard2.0

camlex.client_x.x.x.x_16
  lib
    net5.0
    net452
    netstandard2.0

camlex.client_x.x.x.x_19
  lib
    net5.0
    net452
    netstandard2.0

camlex.client_x.x.x.x_online
  lib
    net5.0
    net452
    netstandard2.0

There will be 12 copied assemblies in total.

  1. Create nuspec file (for server OM. Not needed for client OM):
nuget spec Camlex.NET.dll
  1. Copy content of nuspec from previous version and paste it to generated nuspec file for new version (for client version copy nuspec from previous package version for appropriate SP version: camlex.client_x.x.x.x_15, camlex.client_x.x.x.x_16, camlex.client_x.x.x.x_19, camlex.client_x.x.x.x_online)

  2. Edit version, release notes and copyright year. For client version also edit id (it should be unique for each targeted version: Camlex.Client.dll, Camlex.Client.2013, Camlex.Client.2016, Camlex.Client.2019)

  3. Create lib/net452 (depending on currently used .Net Framework version) subfolder in current folder and move Camlex.NET.dll assembly there

  4. Create nupkg file:

nuget pack Camlex.NET.dll.nuspec
  1. Publish package:
nuget push Camlex.NET.dll.x.x.x.nupkg -Source https://api.nuget.org/v3/index.json

If API key got expired - create new API key in nuget and then save it:

nuget setapikey <api_key> -Source https://api.nuget.org/v3/index.json

One of the best MUST HAVE library for every SharePoint developer ever. Guys, keep it up! by avishnyakov on Aug 20, 2013 at 5:36 AM

This package is absolutely a helpful solution of buildup CAML markup, i was once create my own package for CAML markup, but then abandoned when I found this project since v1.x, this project is just become much better. You will never know how troublesome when there is no results returned and you may have to bothered with the CAML markup syntax. It is truly a life saver and rescue a lot of developer day and nights. A must have library for SharePoint lover / developer. by z9ekaMen1 on Oct 11, 2016 at 5:45 AM

very useful tool! by patriksergil on Mar 12, 2015 at 12:17 PM

Clone this wiki locally