New-ScSerializationNugetPackage
Builds the NuGet package containing all serialization files.
Syntax
New-ScSerializationNugetPackage [-Source] <String> [-PackageName] <String> [-Version] <String> [-OutputFolder] <String> [-NugetCommand] <String> [[-DistributedSerialization] <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
Description
Builds the NuGet package containing all serialization files.
Parameters
-Source <String>
Path to the root of the repository.
Position | Required | Default value | Accept pipeline input | Accept wildchard characters |
---|---|---|---|---|
1 | true | false | false |
-PackageName <String>
The name of the package to create.
Position | Required | Default value | Accept pipeline input | Accept wildchard characters |
---|---|---|---|---|
2 | true | false | false |
-Version <String>
The version of the package to generate.
Position | Required | Default value | Accept pipeline input | Accept wildchard characters |
---|---|---|---|---|
3 | true | false | false |
-OutputFolder <String>
The folder where the generated NuGet package will be written.
Position | Required | Default value | Accept pipeline input | Accept wildchard characters |
---|---|---|---|---|
4 | true | false | false |
-NugetCommand <String>
A path to nuget.exe or just "nuget" if NuGet.exe is in the path.
Position | Required | Default value | Accept pipeline input | Accept wildchard characters |
---|---|---|---|---|
5 | true | false | false |
-DistributedSerialization <Boolean>
_If DistributedSerialization is true, the command will search for serialization folders in the whole solution. The excepted structure is as follow:
... |- serialization |- ... |- code |- *.csproj |- ...
If DistributedSerialization is false it will simply take $Source/serialization as the only serialization folder._
Position | Required | Default value | Accept pipeline input | Accept wildchard characters |
---|---|---|---|---|
6 | false | True | false | false |
-WhatIf <SwitchParameter>
Position | Required | Default value | Accept pipeline input | Accept wildchard characters |
---|---|---|---|---|
named | false | false | false |
-Confirm <SwitchParameter>
Position | Required | Default value | Accept pipeline input | Accept wildchard characters |
---|---|---|---|---|
named | false | false | false |
Examples
-------------------------- EXAMPLE 1 --------------------------
New-ConfigNugetPackage -Source D:\projects\myProject -PackageName My.Config -Version 1.2.3 -OutputFolder D:\temp -NugetCommand .\tools\nuget.exe -DistributedSerialization $true