Cannot use generic math in .NET 6
.NET 6 introduced generic math, but I'm not able to use it in LinqPad.
To enable generic math in a normal C# project, we need to set EnablePreviewFeatures
to true
and reference package System.Runtime.Experimental
.
Can LinqPad provide an option to enable this scenario?
Comments
Hi @hez2010 , I submitted a same ticket here:
https://forum.linqpad.net/discussion/2491/enablepreviewfeatures-support-for-net-core-6-0-preview-7
Really would like to have PreviewFeatures exists in LINQPad
Try LINQPad 7:
https://www.linqpad.net/LINQPad7.aspx
You will also need to:
- Add a NuGet reference to System.Runtime.Experimental
- Go to Edit | Preferences > Query and check Enable C#/F# Preview Features.
I works as expected. Thank you!