LazyStack

ProjectOptions Directive

NugetPackageVersions

This is a handy place to specify the version of NuGet packages used in generated projects.

# LazyStack Version 1.0.0
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: ""
      System.ComponentModel.Annotations: ""
      JsonSubTypes: ""
      Newtonsoft.Json: ""

...
          

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.