Add netstandard2.0 support to allow using Testura.Code within a Roslyn source generator project#112
Add netstandard2.0 support to allow using Testura.Code within a Roslyn source generator project#112asyncmeow wants to merge 4 commits intoTestura:masterfrom
Conversation
|
Current progress on getting tests to build - the |
…` to build test project against new `Testura.Code` target framework
|
So, I have the tests building with my change now, but I cannot actually run them - even on unmodified sources from this repository instead of my fork, the tests don't pass. At a glance, it looks like your tests don't actually support running on non-Windows systems, and my primary development system is a MacOS system. Specifically, I get errors like this from the failing tests that I looked at briefly: which seems to be a mix of a MacOS and a Windows path. Would one of you guys be able to run the unit tests for me and let me know if all of the tests pass? Keep in mind that I'm not sure if Visual Studio actually supports running anything except the newest framework version's tests natively - you may have to use the |
|
After running the tests on another machine and finding out it hard-requires .net 4.5, I'm skipping the tests and marking the PR as ready for review, since there's no reasonable way to run the tests as the tests require a long-unsupported .NET version to run. |
|
I have just seen this a year later. Nice work! I don't have Pull Request rights. I will try to contact the main developer for this and see if we can get it merged in |
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.
netstandard2.0target toTestura.CodeandTestura.Code.TestsPolySharpdependency toTestura.Codeto polyfill features from newer C# versions intonetstandard2.0buildsTestura.Code, and the source generator only adds code when targeting newer C# versions with older target frameworks.Testura.Codeuntil the project buildsWill update in comments on my current progress so far on this.