Testura.Code
Testura.Code copied to clipboard
Add netstandard2.0 support to allow using Testura.Code within a Roslyn source generator project
I'm working on making some source generators I use in my own projects into it's own project, later to be published on NuGet, and I saw this project while I was cleaning up the code a bit and looking for a way to make my code generation a bit nicer. I decided to try and port this project to the .NET version required for source generators.
- [X] Add
netstandard2.0
target toTestura.Code
andTestura.Code.Tests
- [X] Add
PolySharp
dependency toTestura.Code
to polyfill features from newer C# versions intonetstandard2.0
builds- This is a source generator only dependency, so it should not be a transitive dependency pulled in by projects depending on
Testura.Code
, and the source generator only adds code when targeting newer C# versions with older target frameworks.
- This is a source generator only dependency, so it should not be a transitive dependency pulled in by projects depending on
- [X] Fix code that relies on non-polyfilled C# features within
Testura.Code
until the project builds - [x] Make test project build
- [ ] Make sure tests succeed
Will update in comments on my current progress so far on this.