Questions tagged [rider]

Rider is a cross-platform (Windows, Linux & macOS) IDE created by JetBrains for the .NET/Mono family of languages such as C#. Use this tag if your questions are specific to using Rider or are specific to Rider's behavior. Rider troubleshooting and bugs are off-topic.

Rider provides 2,000+ live code inspections, 500+ refactorings, multiple code navigation helpers, a unit test runner, an integrated debugger, rich coding assistance, and dozens of other features that help you read, write, and navigate large .NET codebases. Most of these features are also found in ReSharper, a popular Visual Studio plugin by JetBrains.

Rider supports most of the languages used in .NET development, from C#, VB.NET, and F# to ASP.NET Razor syntax, JavaScript, TypeScript, XAML, HTML, CSS, SCSS, JSON, and SQL.

Useful links

1062 questions
0
votes
1 answer

Access current file path in JetBrains Rider

Is there any way to access file path to the current file in JetBrains Rider? I am looking for an environment variable or something similar that I can use to frame a URL, something that looks like www.abc.com/$FILE_PATH$
user1982519
  • 515
  • 5
  • 24
0
votes
0 answers

Why does Rider 2019.3.1 return an error when trying to install a NuGet package from a private repository?

I'm running Rider 2019.3.1 on macOS 10.15.2, and when I try to install a NuGet package, I get an error like the following (I have removed the address of our private repository): Failed to retrieve information about 'AWSSDK.StepFunctions' from remote…
Lee Crabtree
  • 1,196
  • 2
  • 12
  • 30
0
votes
2 answers

Why does Resharper tell me there is a possible NullReferenceException?

I switched the Value Analysis Mode in Rider to Pessimistic to highlight every "Possible NullReferenceException" and in the example below, I have a warning on the "Languages[0]" part and I don't understand why since I initialize my collection right…
cdauphin
  • 177
  • 10
0
votes
0 answers

Remove keybindings in Rider Switcher menu

Is it possible to remove the keyboard shortcuts highlighed in the blue circle, in JetBrains Rider?
TheFisherman
  • 1,239
  • 3
  • 13
  • 17
0
votes
2 answers

How to set up drawable resource folders for Xamarin Android app in Rider IDE

I'm brand new both to Xamarin and the Rider IDE, but not to Android. I'm going through some test projects, but when I make a new project, the ProjectName/Resources folder is missing things that I would expect to be there, most notably drawable. …
Cameron
  • 1,281
  • 1
  • 19
  • 40
0
votes
1 answer

Unable to restore nuget packages from private source in Rider 2019.3 running on Ubuntu

I'm unable to restore package for a solution in Rider 2019.3. The error that happens is the following: 17:12:23| Retrying 'FindPackagesByIdAsyncCore' for source…
afnpires
  • 601
  • 1
  • 8
  • 24
0
votes
0 answers

Cant install ML.NET on MAC OS (DotnetTool not supported by project)

I'm trying to install mlnet 0.15.1 on Mac OS 10.14.6 (Mojave) using the Rider and .Net Framework v4.7.2, but I am still getting error message saying that DotnetTool is not supported by the project. What does it mean? Full log using…
hory
  • 305
  • 1
  • 4
  • 12
0
votes
1 answer

How to install a VS plugin in Rider?

I am trying to switch from Visual Studio to Rider. For that, I need Rider to be able to import a third-party SDK (ArcGIS Pro SKD from Esri). This is available in the Visual Studio Marketplace but not in Rider. I also have a vsix installer package…
Morten
  • 3,778
  • 2
  • 25
  • 45
0
votes
0 answers

How to deploy installation file for .NET program with Rider IDE?

I am trying to create a Windows setup file for my .NET project. My IDE is Rider. Can I use ClickOnce within Rider? I looked into Squirrel but it seems it does not provide a way to present user with prompts that are needed at the installation, but…
miran80
  • 945
  • 7
  • 22
0
votes
1 answer

Jetbrains Rider not cleaning JavaScript files when full cleanup of file selected

Latest version of Rider does not clean up JS files (C# file cleanup working fine), such as removing extra spaces, extra lines, or fixing lines greater than defined acceptable length. However, Resharper cleans up the files correctly. NET Core 3.0 web…
JJJulien
  • 269
  • 2
  • 13
0
votes
1 answer

How do I turn off code readonly mode while app is running in Rider IDE?

I turned it on in popup window and now I'm searching for a place in settings where I can turn it off. How do I do that?
0
votes
0 answers

"Opening file failed" error when using Unity 2019 w/ JetBrains Rider IDE

I am using Unity 2019.2.10f1 and Rider 2019.2. However, when editing the code in Rider and then switching back over to Unity, I almost always receive this error message: Opening file XXX: The process cannot access the file because it is being used…
Zephyr
  • 9,885
  • 4
  • 28
  • 63
0
votes
0 answers

Use modified decompiled files in later builds in C#

When I am inspecting code, I often find my self reading and modifying decompiled files. Rider or Resharper decompile files automatically. Later on, I add a bunch of Console.WriteLine(), to better understand what the program is doing. The problem is,…
sanjihan
  • 5,592
  • 11
  • 54
  • 119
0
votes
1 answer

How to maintain project tree state (collapsed and/or expanded items) after closing and reopening the IDE?

Every time I run Rider it shows the project tree completely collapsed or closed. I would like to keep the state of each node/item just as it was when I closed the IDE, similar to what happens in Visual Studio. Is there any setting that allows this?…
Luis
  • 87
  • 3
  • 9
0
votes
1 answer

Problem with unit test case when test case paramater is changing an argument with a default value

I am fairly new to programming and only know the basics. I am currently writing a unit test for a .net core 2.2 controller. I am using Rider, Nunit, and Moq. Here is one of the unit test where I am getting a problem: [Test] [TestCase(true)] …