First Steps with .Net 5: Upgrade Visual Studio

The new .Net 5 was released a few hours ago at .Net Conf 2020. I looked forward to this release that marks the future of .Net. From now on all the new features for .Net will go to this branch while the full framework (4.8) only gets bugfixes.

I wanted to try the new features of C# 9 right away and installed the SDK from dot.net/get-dotnet5. I created a new project in Visual Studio with .Net 5 as the target framework and run straight into this build error:

The reference assemblies for .NETFramework,Version=v5.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

As it turns out, you can create a project for .Net 5 in Visual Studio 16.7.7, but you cannot compile it. Not the best way to create a first impression.

Make sure that you upgrade Visual Studio to at least 16.8.0 when you want to try .Net 5. With this version my code compiled without any problem and I can now start to explore the new features.

Upgrade Visual Studio to at least 16.8.0

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.