How can I use .NET Core in C# interactive?

4.9k views Asked by At

How can I make the C# interactive console inside Visual Studio use .NET Core instead of .NET Framework?

By default when it starts it shows that it is using .NET Framework in parenthesis in the title bar.

1

There are 1 answers

4
Jordi On BEST ANSWER

In Visual Studio 2019 16.8.3 (and probably in earlier versions, but I don't know how much earlier) you can execute:

#reset core

This resets the C# interactive console and makes it use .NET Core.