Using Project Rider under Windows without Visual Studio: prerequisites

If you have installed Project Rider on a Windows machine that has an existing Visual Studio installation, we expect Project Rider to start working without taking any further configuration steps.

However, if you want to use Project Rider on a copy of Windows that doesn't have Visual Studio installed:

  1. Download and install the JetBrains redistributable of MSBuild (to learn more, please visit the blog post.)
  2. Download and install Microsoft .NET Framework Developer Pack 4.5.1 or later from this list: https://www.microsoft.com/net/targeting 
  3. (Optional, if you're interested in developing .NET Core applications.) Install .NET Core for Windows.
  4. (Optional, if you're interested in developing Web applications.) Download and install IIS Express (choose the x86 distribution for your language): https://www.microsoft.com/en-us/download/details.aspx?id=48264
  5. (Optional, if you're interested in developing FSharp applications)
    1. Add NuGet https://www.nuget.org/packages/FSharp.Compiler.Tools to project
    2. Changing TargetFrameworkVersion may be required

UPDATE: the link to the JetBrains redistributable of MSBuild was updated to the version with a fix for RIDER-14558.

26 comments

When can we expect support for .NET Framework versions later than 4.5.1? Seeing as 4.5.1 has been out of support for a full year now, it'd be awesome to see Rider support, say, 4.6 or 4.6.1.

4

What about using Mono with Windows, how can i choose between using .NET and Mono?

Can´t find any option in my project that i want to run/build in both frameworks.

1

Aapo, I have updated the instructions to reflect that any Developer Pack from the list at https://www.microsoft.com/net/targeting will do.

0

Daniel August
1. Set valid "mono root folder path" in Settings
2. For both Run and Debug configurations there must appear a checkbox "use mono runtime"

Also related https://youtrack.jetbrains.com/issue/RIDER-3778

0

Hi,

I follow the installation instruction and I got the error:

"Cannot load the project with the current MSBuild toolset. Please ensure MSBuild 15.0 is installed."

After that, I installed Microsoft Build Tools 2017 with MSBuild 15 and I still got this error.

When I installed Visual Studio the error gone.

Is it a bug or I'm doing something wrong? I'm using Windows 10, .NET Core 1.0.1 SDK

I'm using Windows 10, .NET Core 1.0.1 SDK, .NET Core 1.1.1 Runtime, .NET Framework 4.6 and above.

Regards,

Przemysław Pogorzelec

 

Edited by Pogoprzem
-1

@Pogoprzem
Latest .NET Core 1.1 requires Workload ".NET Cross Platform development" from Visual Studio installation. We hope to remove this limitation soon.

0

Microsoft Build Tools 2015 link is dead, I believe it should be replaced by this one? https://www.visualstudio.com/downloads/#d-build-tools

(Under "Other Tools and Frameworks" > Build Tools for Visual Studio 2017)

0

Thanks Jackson, the link is now updated.

0

 Regarding Step 5: The link seems to be down and I can't find any similarly named repository on GitHub either.

0

@Benjamin, Sorry I put a link to private repository. Copied info directly here.

1

@Ivan, thanks that put me on the right track! However with just the Microsoft Build Tools 2015 (I don't have Visual Studio installed at the moment) I couldn't get it to work; it always failed with a "The target "build" could not be found in the project..." error message. Installing the Build Tools for Visual Studio 2017 (1) and selecting F#-Support during the installation fixed that for me.

 

(1) https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017

0

Hello,

As you can see I don't have a Visual Studio 2017 IDE installed.

Here's what I needed to set to get Rider to recognize a .NET framework and to build applications.

If I try to select any other .NET SDK or targeting pack I can't build using Rider.

Rider needs .NET 4.5 to work. Given this these instructions don't see correct.

Thanks

1

@S07h0sxxef Currently Rider default project templates have TargetFrameworkVersion =4.5 in csproj without checking what frameworks are installed.

However you can changeTargetFrameworkVersion to other value corresponding to TargetFramework installed on your machine.

0

I don't see any easy way to do this.

For a test I added 4.5.1

After doing that I would expect there to be an easy way in Rider to choose either 4.5 or 4.5.1 for this project. I still only see 4.5. Why?

Thanks

1

While installing Microsoft Build Tools 2017 I saw license link.

Do I understand correctly that "Microsoft Build Tools 2017" can't be used for commercial development without a VS 2017 license?
Do you have suggestions on how to use the Rider for commercial development under Windows without buying VS 2017?

BTW, MSBuild is under MIT license. Will Rider work with custom MSBuild on Windows? And if so, is it legal?

Edited by Oleg
1

Oleg,

Good catch! We'll look into Microsoft Build Tools licensing more closely, and we'll modify the requirements if we can confirm there's an issue. The underlying MSBuild is under MIT.

0

"If you have installed Project Rider on a Windows machine that has an existing Visual Studio installation, we expect Project Rider to start working without taking any further configuration steps."

Well, it doesn't.  I am demoing Rider and so far the impression isn't very good :(

I have Visual Studio 2017 and 2015 installed and setup working with Unity, and I am evaluating Rider.  I installed Rider and opened my Unity project.  Rider complained that .NET 4.5 wasn't installed (which it was), and gave me a link to download it.  I followed the link and downloaded and installed it again, and restarted Rider.  Rider still insisted .NET 4.5 isn't installed and as a result gives me tons of errors in my project.

I checked Windows installed Apps and it clearly shows the .NET 4.5.1 and 4.5.2 SDKs installed, yet Rider apparently can't see them.

0

@John: Rider only recognizes the .NET 4.5 Framework as .NET 4.5, not the 4.5.1 and 4.5.2 Frameworks. You you should be able to change the used version for every Project however; just right-click on an opened Project in the Solution Explorer and select 'Properties' and there choose the desired target framework.

0

@Benjamim

Plain 4.5 is also installed on my system according to what I see on disk (in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework )

Setting the Rider Unity Preferences in Unity to use 3.5 seems to work, although there are several notices that I shouldn't be doing this so I would rather get it working with 4.5.

 

0

@John Vanderbeck
Y
ou may manually put 4.5.1 instead of 3.5 or 4.5 in Rider Unity Preferences in Unity.
Plugin also has code for windows which is intended to detect target frameworks on PC.
https://github.com/JetBrains/resharper-unity/blob/master/resharper/src/resharper-unity/Unity3dRider/Assets/Plugins/Editor/JetBrains/RiderPlugin.cs#L91
But I see, that you wrote, there is 4.5 in the folder.
Could you please collect msbuild log?
Run Rider in internal mode and execute "Reload project and show logs" context action on project from Solution Explorer. It that case Rider will reload a project, collect all information from MsBuild and show log file in editor. Thanks!

Edited by Ivan Shakhov
0

Hey there! Is it possible to do Xamarin development using Rider without VS being installed? If so, what all would we need to install to do that? To the best of my knowledge, Xamarin is only able to be installed within Visual Studio anymore, so I just wanted to make sure.

Thanks for the awesome progress with Rider so far!

Edited by Derik
1

@Jura - is there any update on Oleg's September comment re: the need for a VS license for the build tools? From what I'm reading, the VS tools are a supplement, so require a full VS license (this is mentioned in the comments in response to a question here: https://blogs.msdn.microsoft.com/vcblog/2016/11/16/introducing-the-visual-studio-build-tools/ ). Need more clarity on this in this post, or an alternative build chain if the VS tools cannot be used due to licensing.

0

@Cej

Yes if you use the MIT version of MSBuild happy days, you don't require a VS license to build. If you're keen i found jetbrain's fork of msbuilb https://github.com/JetBrains/msbuild/tree/JetBrainsToolset20180207

I've successfully built this repo and currently using it with rider.

0

Hi all! I'm writing to say that we have finally built and released our custom MSBuild, you can use it without Visual Studio license:

  1. Download MSBuild here: https://download.jetbrains.com/resharper/JetMSBuild.zip
  2. Go to "File | Settings | Build, Execution, Deployment | Toolset and Build", select "Custom" in "Use MSBuild version" field and specify the path to MSBuild.exe.

Please note that MSBuild doesn't include some targets (ex. Microsoft.WebApplication.targets), which may cause build errors.
We would be very grateful if you could try it and share your feedback with us.

Edited by Julia Vaseva
0

Just the steps described in this post were not enough to get my builds working. I additionally had to download the visual studio 2017 build tools here:

https://www.visualstudio.com/downloads/#d-build-tools   (thanksJackson Rakena)

I installed everything under web, plus a bunch of other things.

I also checked the nuget install box.

 

I additionally ran the two following commands in powershell as administrator (I don't know if they were necessary or not):

 

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

choco install visualstudio2017-workload-webbuildtools

As described here: https://stackoverflow.com/questions/47797510/the-getreferencenearesttargetframeworktask-task-was-not-found?rq=1

 

Finally, I used the auto-detected version 15 of msbuild, not the one provided by jetbrains. The issue that I was running into was the one described in the stack overflow question above.

0

Update June 18, 2018: Updated binaries to include the fix for “The “GetReferenceNearestTargetFrameworkTask” task was not found.” when building app project with reference to a library project (RIDER-14558).

1

Please sign in to leave a comment.

Have more questions?

Submit a request