Run Rider even with the new .NET Core 2.0 SDK

Published 8/15/2017 8:27:14 AM
Filed under .NET

This week .NET Core 2.0 alongside with ASP.NET Core 2.0 was released. A lot of improvements were made to the runtime and the size of the standard libraries has increased significantly. More and more .NET APIs are available to you.

Also, Rider was released a new IDE specifically for .NET development in C# and F#. It currently supports only .NET Core 1.x. You can of course run .NET Core 2.0, but it will warn you that not everything works as expected.

You can of course use Rider even with these limitations. But if you're working on an existing project and can't upgrade it's better to have it running on the 1.x SDK.

Luckely there's a good tool for that. The .NET Core SDK switcher:

When you follow the instructions in the Github repository you can run the following command to switch to the older SDK

dotnet sdk 1.0.4

Now when you run Rider it will automatically use the older SDK.

If you want to switch back, run the following command:

dotnet sdk 2.0.0

Easy as that! Happy hacking :-)