How to change .NET Framework in Rider IDE?
Asked Answered
M

4

33

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.

Manganous answered 9/2, 2018 at 6:18 Comment(4)
I think you can change it in your project properties.Fundamental
@Fundamental It will be for each project? I can't just make an entire solution for specific version?Manganous
I don't think there is an option for global. You have to do it by project wiseFundamental
See this https://mcmap.net/q/453104/-jetbrains-rider-targets-4-5-framework-and-no-option-to-switch-to-4-7Fundamental
C
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...

Chatwin answered 9/2, 2018 at 8:57 Comment(0)
T
31

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.

Thermae answered 16/9, 2020 at 4:43 Comment(2)
Upvoted, this is the correct answer, why someone downvotes?Iconography
What a backwards way of changing the framework! How's the user supposed to know the framework is tied to MSBuild?Peel
S
17
  • 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
Slumberland answered 1/2, 2021 at 15:22 Comment(2)
The easiest way! ThanksSkywriting
I don't have ellipses here, only a dropdown with one old version that doesn't work. Any idea how to fix?Melville
C
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...

Chatwin answered 9/2, 2018 at 8:57 Comment(0)
W
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

Wager answered 9/2, 2018 at 8:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.