LazyStack

ProjectOptions Directive

NugetPackageVersions

Specifies the version of NuGet packages used in generated projects.

Some of these default versions are managed by LazyStack and always updated to the latest version required by LazyStack. You may override these LazyStack defaults for individual projects. You may add additional packages to the NugetPackageVersions.


ProjectOptions:
  NugetPackageVersions:
    System.ComponentModel.Annotations: '5.0.0'
    JsonSubTypes: '1.8.0'
    Newtonsoft.Json: '12.0.3'
    AWSSDK.Extensions.NETCore.Setup: '3.3.101'
    Amazon.Lambda.AspNetCoreServer: '5.2.0'
    Swashbuckle.AspNetCore: '5.6.2'    
    LazyStackAuth: '1.0.0'
    SomeOtherPackage: '1.0.0' # a package you have specified
  ClientSDKProjects:
    PackageReferences:
      LazyStackAuth: ''
      System.ComponentModel.Annotations: ''
      JsonSubTypes: ''
      Newtonsoft.Json: ''
      SomeOtherPackage: '' # LazyStack will add th is package reference to the csproj file using the version specified in NugetPackageVersions
    

When a PackageReference has an empty value for the version, the version number to use is looked for in the NugetPackageVersions. If the PackageReference version is specified then that version is used regardless of the version (if any) specified under NugetPackageVersions.

Note: These settings only affect generated projects. They do not affect any other projects in your solution.

Ignore Option

Sometimes you want to use a ProjectReference instead of a default PackageReference. For example, in the ProjectOptions.ClientSDKProjects.PackageReferences above the LazyStackAuth package is referenced by default. If you want use the LazyStackAuth project instead you will need to defeat the inclusion of the LazyStackAuth package default. This is accomplished by specifying a value of 'ignore' for that package as shown below":

Note: You can't just delete the LazyStackAuth package reference because it is automatically added during LazyStack project processing.


ProjectOptions:
  NugetPackageVersions:
    System.ComponentModel.Annotations: '5.0.0'
    JsonSubTypes: '1.8.0'
    Newtonsoft.Json: '12.0.3'
    AWSSDK.Extensions.NETCore.Setup: '3.3.101'
    Amazon.Lambda.AspNetCoreServer: '5.2.0'
    Swashbuckle.AspNetCore: '5.6.2'    
    LazyStackAuth: '1.0.0'
  ClientSDKProjects:
    PackageReferences:
      LazyStackAuth: 'ignore'
      System.ComponentModel.Annotations: ''
      JsonSubTypes: ''
      Newtonsoft.Json: ''
    ProjectReferences:
    - ..\..\LazyStack\LazyStackAuth\LazyStackAuth.csproj