.NET 11 Preview support?

Comments

  • This is now available in 9.8.1.

  • G'day Joe, Sorry I must be doing something wrong trying to get unions working as I keep getting CS1001, CS0246 and CS0501

    CS1001 Identifier expected
    
    CS0246 The type or namespace name 'union' could not be found (press F4 to add an assembly reference or import a namespace)
    
    CS0501 '<invalid-global-code>.Pet(Cat, Dog, Bird)' must declare a body because it is not marked abstract, extern, or partial
    
    

    screenshot

  • JeffMercado
    edited April 8

    Also collection expression arguments. I believe these two should both be in the preview.

  • The C# 15 preview features should now be supported in 9.8.2. You will need to enable the .NET 11 SDK Roslyn API (new checkbox) in Settings > Script.

  • Thanks Joe looks good to me.

    Minor issue, intellisense for the with element doesn't work but that's fine. Might need to add support for the new changes.

  • Autocompletion will be available when there's a more official Roslyn drop - I don't want to build against unofficial preview libraries.

    There's now a new sample library What's new in C# 15 in the latest beta.