Questions tagged [jetbrains-rider]
131 questions
2
votes
0 answers
Keyboard shortcut or command to qualify a type name instead of import?
Rider gives us the option to import a type name if it is currently not in scope. But is there a way to make it qualify the name instead?
I don't necessarily want to import if it's just for a single type. It'll be easier to qualify the name with…

Jeff Mercado
- 129,526
- 32
- 251
- 272
2
votes
1 answer
Jetbrains Rider specify runtime build parameter
In Jetbrains Rider, the Build Configurations let you change some of the parameters passed in when the Build Project command is invoked, but there's nowhere I can find to enter the specific Runtime Identifier.
The reason we'd like to provide a…

user19721505
- 21
- 3
2
votes
1 answer
Rider - Can't Build because the process cannot access the file because it is in use by another process
I come here to post the error I have, it appeared suddenly, yet I haven't touched anything for hours, I just wanted to rebuild because I didn't know if I had build.
Fody: An unhandled exception occurred:
Exception:
The process cannot access the file…

Maxime66410
- 31
- 6
2
votes
2 answers
How do I create a preprocessor "define" in Jetbrains Rider
I am writing C# code using Jetbrains Rider.
I would like to compile different behaviours depending on certain circumstances (as specified by my preprocessor constant).
The idea is to have code such as this
#if…

Alterino
- 43
- 4
2
votes
0 answers
How to capture the traffic and monitoring application network activity in JetBrains Rider?
I am using JetBrains Rider and I want to monitor and debug the network activity of my app. I know there are tools like Fiddler or Wireshark that can capture the traffic, but I want to see it inside Rider's IDE, if possible. Is there a way to do…

Osama AbuSitta
- 3,918
- 4
- 35
- 51
2
votes
1 answer
Ubuntu 22.04 + JetBrains Rider cannot do scaffold dbContext
/usr/share/dotnet/dotnet ef dbcontext scaffold --project WebApplication1/WebApplication1.csproj --startup-project WebApplication1/WebApplication1.csproj --configuration Debug…

Sefa
- 23
- 4
2
votes
1 answer
C# Implicit conversion of "someValue" from 'string' to 'StringValues' in Rider
Working with ASP.Net Core in Rider (learning it) and trying to set the Response headers.
The headers work great, no problems. But in the Rider it adds some information (as on the image below) with the tip:
Implicit conversion of "someValue" from…

Arsenii
- 655
- 1
- 8
- 20
2
votes
1 answer
WebStorm ignoring exclude option in tsconfig.json
How do I set a directory as excluded from TypeScript compilation in WebStorm?
The IDE's TypeScript compilation service doesn't seem to be respecting the tsconfig.json's exclude setting for compilation. Running tsc from the terminal properly ignores…

Emberfire
- 89
- 7
2
votes
1 answer
JetBrains Rider - how to execute a C# scratch
In JetBrains Rider, when I create a scratch C# file, how can I execute it?
Making the Main method public static and adding a namespace seems to be not enough.
using System;
namespace MyNamespace
{
public class Foo
{
public static…

izy
- 1,085
- 14
- 18
2
votes
1 answer
Rider cannot resolve symbols related to Xamarin.iOS framework
JetBrains Rider states that it cannot resolve quite a lot of symbols including UITableViewCell, ContentView, bool, decimal, string, void and many more.
In the solution explorer, Rider indicates a warning sign for all the Assemblies.
Below are my…

Roshana Pitigala
- 8,437
- 8
- 49
- 80
2
votes
0 answers
What is the action command name activated by mouse hovering over some piece of code?
I would like to create a vim shortcut with the action activated by hovering the mouse over some piece of code (compiler errors to get its description, suggestions, functions to get its parameters etc).
Is there any mapped action to it? I was not…

Vikto
- 512
- 1
- 7
- 19
2
votes
1 answer
How can I change JetBrains Applications new function formatting
I prefer my code to be more compact but JetBrains Rider (or any IntelliJ based editor) automatically formats it like this:
void Start()
{
}
How can I change it to the following by default?
void Start() {
}

Maxb0tbeep
- 33
- 5
2
votes
1 answer
How to format C# "else" onto one line in Rider
How can I get else to be on one line as it should be? (meaning } else { instead of the version shown below).
I am already using K&R style which fixes all other uses of braces (as shown below), but it does not fix the else.

Nick Cardoso
- 20,807
- 14
- 73
- 124
2
votes
0 answers
Debug as root jetBrains Rider
Is there a way to debug a project with root privileges in Rider like in Clion ? In CLion there is next settings but in Rider there isn't: https://www.jetbrains.com/help/clion/debug-as-root.html#elevation

Aleksandr
- 79
- 5
2
votes
0 answers
Rider Hot Reload for .NET Core WebApi not working
So basically If I make a code change, the C# application won't restart, I had to rerun manually the build project everytime I add a new line of code. This is on JetBrains Rider IDE.
So as they say in documentation, this feature is enable by default…

Anthony Acosta
- 51
- 1
- 9