Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Releases: AArnott/CodeGeneration.Roslyn

Huge Tool refactor

08 Apr 10:54
Compare
Choose a tag to compare

Copy of Changelog entry

⚠ There are major changes, please look at v0.7 migration guide.

Added

  • Template pack for dotnet new: dotnet new -i CodeGeneration.Roslyn.Templates
  • Various samples in samples folder
  • GitHub Actions CI
  • Support for plugin dependencies! 🎉 (#156).
  • Plugins (generators) are now easier to build using CodeGeneration.Roslyn.Plugin.Sdk MSBuildSdk package (#113).
  • Plugins are now easier to distribute using CodeGeneration.Roslyn.PluginMetapackage.Sdk MSBuildSdk package, see
    Readme section (#205).

Changed

  • Readme demo is now simpler, and suggests usage of Templates package, and Sdks.
  • .NET Core SDK version bumped to 3.1.100 (#178).
  • Attributes package now targets net20;net40 in addition to netstandard1.0 (#178).
  • Tool now has RollForward=Major policy to allow it to run on newer runtimes than 2.x,
    e.g. .NET Core SDK v3.x only should suffice for most usage scenarios (#178).
  • MSBuild ItemGroup used for registration of plugin paths changed to CodeGenerationRoslynPlugin
    (was GeneratorAssemblySearchPaths). A warning for using old one is introduced (CGR1002). (#156)
    • ItemGroup now should contain full path to generator dll (previously it was a containing folder path)
    • Old behavior has a compat-plug for now and the paths are searched for any dll, and those found are added to new ItemGroup.
    • When using P2P generator (same solution), a consuming project needs to add an attribute OutputItemType="CodeGenerationRoslynPlugin" to the ProjectReference of the generator project. See v0.7 migration guide.
  • dotnet-codegen package is now CodeGeneration.Roslyn.Tool and is built very differently;
    also it includes build assets from BuildTime package (#198).

Removed

  • CodeGeneration.Roslyn.BuildTime package is now merged into CodeGeneration.Roslyn.Tool
    (which is now the only package required to be referenced by generator consumers, aside from generators themselves) (#198).

v0.6.1

16 Jun 14:16
Compare
Choose a tag to compare
  • Roslyn dependency updated to v3.1.0
  • CodeGeneration.Roslyn library now targets netstandard2.0 (#126)
  • Better error messages (#147)
  • Errors instead of warnings (#141)
  • Internal fixes and refactors

Diff from last release

v0.4.74

06 Sep 01:25
9b7ec97
Compare
Choose a tag to compare
Merge pull request #90 from AArnott/fix32

Evaluate real preprocessor symbols

v0.4.65

26 Aug 18:26
4a51fd0
Compare
Choose a tag to compare
Merge pull request #86 from AArnott/fix84

Target .NET Core 2.0 with the `dotnet-codegen` tool

v0.4.62

20 Aug 17:03
50458b5
Compare
Choose a tag to compare
Merge pull request #75 from LokiMidgard/Logger

Logger

v0.4.49

18 May 04:03
8113bbd
Compare
Choose a tag to compare
Merge pull request #74 from AArnott/xunitRunnerUpdate

Update xunit test runner to 2.3.1

v0.4.42

11 May 14:04
d282404
Compare
Choose a tag to compare
Merge pull request #70 from amis92/fix/commandline-inlining

Inline System.CommandLine into Tool project, closes #63

v0.4.37

03 May 14:36
078476a
Compare
Choose a tag to compare
Merge pull request #67 from Pzixel/feature/global_attributes_generation

Assembly attributes support

v0.4.11

04 Jul 15:31
Compare
Choose a tag to compare
Merge pull request #39 from Pzixel/feature/CodeAnalysis220

Nuget update Microsoft.CodeAnalysis.CSharp to 2.2.0

v0.4.9

26 Jun 06:35
Compare
Choose a tag to compare
Lock in dotnet CLI tool targeting 1.0.4

This should keep it working on Travis CI build agents