27

In Rider IDE, I am trying to create a new solution:

enter image description here

But I'm unable to change the .NET Framework as the dropdown is disabled. How can I change the version? I have installed .NET Framework 3.5, 4.5, 4.6.

Pang
  • 9,564
  • 146
  • 81
  • 122
FaizanHussainRabbani
  • 3,256
  • 3
  • 26
  • 46

4 Answers4

22

This is one of the way to change the build framework in Rider. It allows you to switch the MSBuild version explicitly by selecting MSBuild.dll.

When you have multiple .NET framework, you can change it here.

This example is for .NET core project.

Within settings

In my system I installed latest .NET core RC after which Rider started complaining in older projects (when there were working fine prior to installation)

I had following versions

enter image description here

I selected the older version of MSBuild.dll and my project were back to normal.

CodeNepal
  • 732
  • 7
  • 11
12
  • in Rider IDE in solution explorer - right mouse click on the project,
  • in properties (left pane) select Application (should be selected by default)
  • in the right - change Target framework - click on ellipses, check your new framework
  • Save
Sasha Bond
  • 984
  • 10
  • 13
4

Actually for now Rider contains the only one Web App Template - for net45. We are going to add another one - for net4.6.1 (or 4.6.2) in 2018.1. You can track status here: https://youtrack.jetbrains.com/issue/RIDER-10888

The main issue here - we can not just change target framework version, but change all referenced package versions and some template files...

xtmq
  • 3,380
  • 22
  • 26
1

@FaizanRabbani You should have installed suitable .NET Developer Pack to change this option. You can download it from https://www.microsoft.com/net/download/windows