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
8
votes
1 answer

Jetbrains Rider: Show "external code" in debugger call stack

In Rider, is there a way to actually show the "external code" in the debugger stack frames, when paused at a breakpoint? In Visual Studio, this can be done easily, but in Rider it seems impossible. And, yes, I enabled "exable external source…
Urs Meili
  • 618
  • 7
  • 19
8
votes
2 answers

Startup Project Option in Jetbrains Rider

I'm using Jetbrain's Rider. I have two classes in a project. They both have main methods. So I'm getting an erorr saying " Program has more than one entry point". I cannot even find the "Startup Project" (as in Visual Studio) option in Rider. Help…
Nafis
  • 81
  • 1
  • 1
  • 2
8
votes
1 answer

Setting HostingEnvironment.EnvironmentName to Development in Rider

My code: public static async Task Main(string[] args) { var host = new HostBuilder() .ConfigureAppConfiguration( (hostContext, configApp) => { …
Mugen
  • 8,301
  • 10
  • 62
  • 140
8
votes
2 answers

The .gitignore setting for the .idea folder of Jetbrains Rider's does not work

I am currently working on a game project for Android using Unity and Rider on Windows10. Git administration is using Github Desktop. After completing the game production, I tried to set up .gitignore to upload to Github, I connected to gitignore.io…
kugorang
  • 161
  • 1
  • 1
  • 9
8
votes
2 answers

Meaning and problems of closure allocation

I'm using JetBrains Rider for programming C#, and I guess this warning will also appear when using ReSharper: I wrote this function, GetTicket: public async Task> GetTicket(int id) { return await…
Matthias Burger
  • 5,549
  • 7
  • 49
  • 94
8
votes
2 answers

How can I enable "implicit evaluation" in the JetBrains Rider settings?

JetBrains Rider does not give me the new value for my watches automatically. Instead, I have to click refresh after every step: I went to the settings and made sure this option was enabled: However, the problem still occurs. Any help would be…
sethpblue
  • 81
  • 2
8
votes
0 answers

Rider 2017.3 highlighting HTML issue

I got a problem that give me headache... So I work on a project with virtuals includes (IIS style) I can not change that, it's historical and not my concern. Visual studio is OK with that, and Rider too, but for sometimes, Rider makes all the HTML…
Jeremy Luisetti
  • 374
  • 1
  • 14
8
votes
1 answer

How Can I Generate API Controllers in IntelliJ Rider?

In Visual Studio, I can generate API controllers in a Web API project by selecting Add | Controller: From this menu, I can choose model class, context class and controller name and with a button press I can generate hundreds of lines of…
Code_Steel
  • 437
  • 2
  • 8
  • 14
8
votes
1 answer

Allow unsafe code in jetbrains rider?

I need to write an unsafe method in C# and apparently "unsafe construct cannot be used in safe context". I went to project properties and saw a switch to allow unsafe code in Debug and Release builds. However, it is not clickable. How do I allow…
wingerse
  • 3,670
  • 1
  • 29
  • 61
8
votes
0 answers

Resharper extract interface - default options

The defaults in the Extract Interface dialogue box for Resharper are "Place beside" and none of the members checked. Is there anyway to change this default? I'd rather "Place in another file" and all public members was checked (i.e. the opposite).
bytedev
  • 8,252
  • 4
  • 48
  • 56
7
votes
1 answer

Update to .NET Core 6.0 in JetBrains Rider

A teammate recently updated our code base to use .NET Core 6.0 and I'm trying to build the project in JetBrains Rider. I went to File > Preferences > Environment and clicked on the Update button for .NET. I think I have the 6.0 SDK installed: %…
Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268
7
votes
2 answers

Rider - evaluation of List is disabled. Use context menu to enable Problem

I've been having trouble previewing the contents of my collection for a while now. The message is: Count = Evaluation of System.Private.CoreLib : System.Collections.Generic.List : get_Count () is disabled. Use context menu to enable As you can…
Nesto
  • 177
  • 2
  • 5
7
votes
1 answer

Contextual keymaps in Rider

Is it possible to create contextual keymaps (shortcuts) in Rider? For example, in VS, F5 is the shortcut for "run in debug mode". Then if you put a breakpoint and it hits, while you're in the debug mode, F5 will let go and "resume" the execution of…
tkit
  • 8,082
  • 6
  • 40
  • 71
7
votes
2 answers

C# Rider How to disable format/reformat in a block of code?

I've got some C# code that has specific format that I don't want re-formatted by Rider. Is there some directive I can add to my code to tell Rider that this section shouldn't be reformatted? Thanks.
cdarrigo
  • 964
  • 1
  • 8
  • 26
7
votes
1 answer

unrecognizedPacketType, Actor server1.conn1.tabDescriptor1 does not recognize the packet type 'attach'

I tried debugging Firefox with Jetbrains Rider. But i got the error unrecognizedPacketType, Actor server1.conn1.tabDescriptor1 does not recognize the packet type 'attach' . Followed link:…
Hien Nguyen
  • 83
  • 1
  • 6