Skip to content

Releases: k94ll13nn3/AutoConstructor

5.6.0

22 Sep 16:22
ac4af23
Compare
Choose a tag to compare

Changed

  • Add support for required and init properties

5.5.0

26 Jun 18:33
2b8d9b5
Compare
Choose a tag to compare

Added

  • Add new argument to AutoConstructorAttribute (matchBaseParameterOnName) that controls whether constructor parameters from base class are matched on type and name or only name

Changed

  • Generated code now include full qualifier for types

5.4.1

22 Jun 19:37
1f8323d
Compare
Choose a tag to compare

Changed

  • Code fixes are now in their own assembly

Fixed

  • Fix generated constructor when parent and child have same parameters but in different order
  • Fix generated constructor when base and child classes have same parameter name with different types

5.4.0

23 May 17:26
fb060ba
Compare
Choose a tag to compare

Changed

  • Add option to generate a parameterless constructor (by @DomasM)

5.3.0

16 Mar 14:56
6787bdc
Compare
Choose a tag to compare

Changed

  • Add XML documentation to generated attributes
  • Replace AutoConstructor_DisableNullChecking with AutoConstructor_GenerateArgumentNullException
  • Add option to configure base calls behavior
  • Add option to configure this calls behavior

5.2.1

04 Mar 21:44
2d209c1
Compare
Choose a tag to compare

Fixed

  • Fix detection of base constructor if parent class defined in another assembly and is using AutoConstructor

5.2.0

19 Dec 18:39
8d03b38
Compare
Choose a tag to compare

Changed

  • Add a diagnostic suppression on CS0436 (diagnostic reported when using InternalsVisibleTo)

5.1.0

23 Nov 18:24
f2514af
Compare
Choose a tag to compare

Changed

  • Add support for struct types and different type kind nesting (by @Sergio0694)

5.0.1

22 Nov 22:00
96fa21c
Compare
Choose a tag to compare

Fixed

  • Fix call to static initializer method
  • Fix generation when a reserved keyword is used (directly or indirectly)
  • Fix edge cases on MismatchTypesRule diagnostic

5.0.0

07 Nov 14:13
6360b27
Compare
Choose a tag to compare

Added

  • Add new argument to AutoConstructorAttribute for specifying constructor accessibility
  • Add AutoConstructorInitializer used to add a call to a method at the end of the constructor

Changed

  • [Breaking] Update Roslyn dependencies. Visual Studio 17.6+ and .NET SDK 7.0.302+ are now required
  • Rework code generation

Fixed

  • Fix incrementability of generator