<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alec Clark</title>
    <description>The latest articles on DEV Community by Alec Clark (@doki_kapoki).</description>
    <link>https://dev.to/doki_kapoki</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1443984%2Fdac07122-3ea9-451d-b6f5-5e71bce7d11a.jpg</url>
      <title>DEV Community: Alec Clark</title>
      <link>https://dev.to/doki_kapoki</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/doki_kapoki"/>
    <language>en</language>
    <item>
      <title>Migrating a project from Visual studio to Rider</title>
      <dc:creator>Alec Clark</dc:creator>
      <pubDate>Tue, 04 Jun 2024 11:57:33 +0000</pubDate>
      <link>https://dev.to/doki_kapoki/migrating-a-project-from-visual-studio-to-rider-4o7k</link>
      <guid>https://dev.to/doki_kapoki/migrating-a-project-from-visual-studio-to-rider-4o7k</guid>
      <description>&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Learning about the ide
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx236ije2jf51x26rw3pn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx236ije2jf51x26rw3pn.png" alt="Search everywhere in Rider"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I haven't used it in a particularly large project so performance could diminish.&lt;/p&gt;

&lt;h2&gt;
  
  
  Command Task runner
&lt;/h2&gt;

&lt;p&gt;I was previously using Command Task Runner (&lt;a href="https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CommandTaskRunner" rel="noopener noreferrer"&gt;https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CommandTaskRunner&lt;/a&gt;) 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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrh5q07rvdf97hidh111.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrh5q07rvdf97hidh111.png" alt="Run/Debug config for start up tasks"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  User Secrets
&lt;/h2&gt;

&lt;p&gt;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&lt;/p&gt;

&lt;h2&gt;
  
  
  Json nesting
&lt;/h2&gt;

&lt;p&gt;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 (&lt;a href="https://www.dandoescode.com/blog/rider-automatically-nesting-json-configuration-files" rel="noopener noreferrer"&gt;https://www.dandoescode.com/blog/rider-automatically-nesting-json-configuration-files&lt;/a&gt;) that provided a way to cutomise the file nestings.&lt;/p&gt;

&lt;p&gt;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:&lt;br&gt;
&lt;code&gt;.json     .Development.json; .Production.json; .Test.json&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkkrqr17vq1eypny5k8bi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkkrqr17vq1eypny5k8bi.png" alt="File nesting settings"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>ide</category>
      <category>visualstudio</category>
      <category>rider</category>
    </item>
  </channel>
</rss>
