dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.87k stars 381 forks source link

[Enhancement] .NET Interactive and .NET Versions #663

Open seesharprun opened 4 years ago

seesharprun commented 4 years ago

I'm a big fan of .NET Interactive and have already started using the C# kernel in Visual Studio Code Notebooks and Try .NET for classroom/training scenarios.

With that being said, it took some trial and error for me to figure out that .NET Interactive did not support the C# 9 language features available in the latest .NET 5 preview 7. C# is evolving faster than ever and I, as a instructor and author, want to be able to use .NET Interactive long-term as a way to teach students the new language features as they land.

So my questions are:

Thanks!

MineCake147E commented 1 year ago

I just ran into the same problem. I tried running a C# notebook with features that are added in .NET 8 Preview.

jonsequitur commented 1 year ago

The C# version you'll see in .NET Interactive is the latest non-preview version.

We're planning to make this more flexible after the .NET 8 release, in order to support preview versions as well as previous versions.