Logo

dev-resources.site

for different kinds of informations.

Migrating a project from Visual studio to Rider

Published at
6/4/2024
Categories
csharp
ide
visualstudio
rider
Author
doki_kapoki
Categories
4 categories in total
csharp
open
ide
open
visualstudio
open
rider
open
Author
11 person written this
doki_kapoki
open
Migrating a project from Visual studio to Rider

I have been dabbling with Rider and JetBrains throughout my career and finally made the full plunge for my personal projects. So far these are the things that I wish I knew about or quickly ran into an issue with due to a feature being in a slightly different location.

Learning about the ide

I immediately appreciated the simple introduction to using the IDE. There were a lot of features that I haven't used when dabbling and I'm not sure that exists in Visual Studio 2022. When opening the IDE for the first time there is a popup asking if you would like to learn about the IDE. You can always access this later by looking for the more tools and selecting Learn. This will launch a demo project that walks you through the features. My personal favourite is double-taping shift launches a full search that appears to be quite quick.

Search everywhere in Rider

I haven't used it in a particularly large project so performance could diminish.

Command Task runner

I was previously using Command Task Runner (https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CommandTaskRunner) to manage simple tasks. I haven't found a replacement for this but I was able to take advantage of the NPM task view and configure the runcli job to spin up at launch of the project. I haven't noticed any performance differences yet but I haven't done any testing to prove this.

Run/Debug config for start up tasks

User Secrets

It took me a little time to find the user secrets home in Rider. This is accessible by right clicking the project file, tools and finally .NET User Secrets

Json nesting

I found that by default Rider doesn't have nested a nested view in the explorer tab for the appsettings.{environment}.json files. This is not a deal breaker and all the files are still present. However, I got a little distracted and eventually stumbled onto a blog (https://www.dandoescode.com/blog/rider-automatically-nesting-json-configuration-files) that provided a way to cutomise the file nestings.

In rider open the explorer. Click on the three dots in the top left and select file nesting settings. From here you can add a nesting rule. I have used the following:
.json .Development.json; .Production.json; .Test.json

File nesting settings

Conclusion

That's all for this post. Hopefully as I continue to progress I can share some more feature's that I am using or am re-mapping between the two environments.

visualstudio Article's
30 articles in total
Favicon
Can Skater's Secure Depot of Private Keys be used as a tool designed for securely storing and managing private keys?
Favicon
Code Protection
Favicon
How to use OpenMP to parallelize C++ using Visual studio
Favicon
Getting started with .Net Aspire
Favicon
Integrating OpenCV with Visual Studio C++
Favicon
Version 9 of .Net is here
Favicon
EasyTdd 0.5.0: Streamlining Mocking with Incremental FluentMock
Favicon
From Legacy to .NET 8: Migrating with NDepend
Favicon
LocalDb Dev on Windows11 ARM
Favicon
How to create custom snippets in Visual Studio 2022
Favicon
Builder: Your Buddy in Test-Driven Development (TDD)
Favicon
AutoEntityGenerator – my first visual studio extension.
Favicon
C# | Visual Studio Extensions for C# Developers
Favicon
SonarQube | Working with SonarLint and SonarQube in Visual Studio
Favicon
Migrating a project from Visual studio to Rider
Favicon
How to embed your git bash into Visual Studio
Favicon
.NET Monthly Roundup - May 2024 - .NET at Build, .NET Aspire GA, and more!
Favicon
Quick Tipp: Dev Tunnels with Visual Studio
Favicon
EasyTdd 0.4.0 Release: Introducing the Incremental Builder
Favicon
Troubleshooting β€œThe File Does Not Have an App Associated with It” Error in Visual Studio
Favicon
Help Needed: "Object reference not set to an instance of an object" Error in Visual Studio
Favicon
Debugging with Precision: Conditional Breakpoints
Favicon
Simple Way To CreateYour NuGet Package: Step-by-Step Guide
Favicon
Easy Self-Hosted Git Installation on Ubuntu Server
Favicon
Effortless Remote Debugging with Dev Tunnel in Visual Studio 2022
Favicon
How to Use GitHub Copilot in Visual Studio 2024
Favicon
How to Enable Windows 11 Developer Mode?
Favicon
Visual Studio Live Share: Complete Guide 2024
Favicon
Gitlens Tutorial - Visual Studio Extension 2024
Favicon
Top 8 Best Visual Studio Extensions in 2024

Featured ones: