This release primarily adds support for raw string literals ("""…""", including interpolated $"""…""") that were introduced in C# 11:
- Finalize raw string value parsing by @atifaziz in #64
- Add support for new-lines in string interpolations (C# 11)
It also fixes the following bugs related to string literals:
- Incorrect format specifier identification in interpolated string
- Unterminated interpolated string with a
switchexpression
The console tool version now supports .NET 8 and 10 and drops support for .NET runtimes versions that have reached end-of-life.
What's Changed
- Have dotnet install scripts use SDK version from "global.json" by @atifaziz in #15
- Update .NET Core runtime to 2.1.23 on CI by @atifaziz in #16
- Update to .NET 5 SDK by @atifaziz in #17
- Upgrade to C# 9 by @atifaziz in #18
- Update dependencies to latest versions by @atifaziz in #19
- Add nullable annotations & enable context by @atifaziz in #20
- Update to .NET 6 by @atifaziz in #21
- Update ThisAssembly.AssemblyInfo to latest version by @atifaziz in #22
- Drop .NET Core 2.1 runtime target that's no longer supported by @atifaziz in #23
- Update "Microsoft.Extensions.FileSystemGlobbing" by @atifaziz in #24
- Update NUnit to latest version by @atifaziz in #26
- Replace Codecov uploader patch with latest official version by @atifaziz in #25
- Fix code coverage collection by @atifaziz in #27
- Remove (unnecessary) console app namespace by @atifaziz in #28
- Use
Visual Sutdio 2022image on AppVeyor for CI builds by @atifaziz in #29 - Convert
Colorto record struct by @atifaziz in #30 - Update more structs to be of type record where applicable by @atifaziz in #31
- Log test results & publish during CI builds by @atifaziz in #32
- Use docopt.net for parsing of CLI args by @atifaziz in #36
- Update .NET SDK (8), dependencies & runtime targets by @atifaziz in #38
- Swap out
Nullable&IsExternalInitfor "PolySharp" by @atifaziz in #39 - Enable full static code analysis by @atifaziz in #40
- Update .NET SDK (10), dependencies & runtime targets by @atifaziz in #41
- Refresh & enforce code style by @atifaziz in #42
- Test for newlines in interpolated string holes by @atifaziz in #43
- Use file-scoped namespaces with imports outside by @atifaziz in #44
- Migrate CI to GitHub workflows by @atifaziz in #45
- Test curly braces in format specifiers by @atifaziz in #46
- Add public API analyzer by @atifaziz in #47
- Make
JsonStringprivate by @atifaziz in #48 - Make reproducible builds with symbols by @atifaziz in #49
- Separate SourceLink verification step in CI by @atifaziz in #50
- Validate NuGet packages by @atifaziz in #51
- Update
Scannerto recognise (interpolated) raw string literals by @atifaziz in #61
Full Changelog: v1.3.0...v2.2.0