Configuring SQL Server 2017 for Rider

Rider is not only a great .NET IDE, it also is a wonderful tool for working with databases that are associated with .NET Core solutions. Many .NET Core developers use Microsoft SQL Server on their laptops; more specifically, the Developer edition of the database server tool. Let’s start a series of blog posts about Rider’s database tools (powered by DataGrip)!

Before you can start using Rider with a SQL Server database, you may discover that you must configure SQL Server 2017 to allow Rider to connect through a TCP port which is not set up at install. In this post, let’s look at configuring SQL Server 2017 Developer Edition to allow Rider to work with the server and databases.

This post is part of a series around working with databases and data in Rider:

Continue reading

Posted in How-To's | Tagged , , , | 2 Comments

Run web site projects, edit file properties and more project model updates in Rider

The latest Rider 2018.1 EAP build comes with a number of updates to the project model. It’s now possible to open and run web site projects (you know, those projects that are just folders), file properties can be edited for .NET Core, and we’ve improved handling of several MSBuild and project properties. Let’s see!

Open and run web site projects

The .NET world has two types of web projects: we can create a Web application, which has a project file, full MSBuild support, etc., and there’s the Web site “project”, which doesn’t have a project file, has less MSBuild options available but can be xcopied to a server without pre-compiling on our local machine or a build server.

We’ve always supported web application projects, and the latest Rider 2018.1 EAP build adds support for web site projects as well. We can open a solution that contains a web site project, and then start developing, running and debugging.

Work with web site project in Rider

Just like with full-blown web application projects, we’ll get all Rider features like navigation, refactoring, code analysis etc.

Continue reading

Posted in How-To's | Tagged , , , , | 5 Comments

Value tracking updates in ReSharper 2018.1 EAP

Every now and then, we need to find out where a value is coming from or where it is going to. Luckily, ReSharper has built-in value tracking for quite some time already and allows us to inspect value origin and inspect value destination. In the latest ReSharper 2018.1 EAP build, we are adding support for ref-returning methods, pattern matching and out-variable declarations.

Value tracking in action

Inspecting value origins and destinations can be handy in a range of situations, for instance when checking for null-reference exceptions (NRE) or other unexpected behavior. Often, debugging is used over value tracking to solve the issue – which is of course totally appropriate. Therefore, let us focus on an example that only value tracking provides excellent help for – introducing default values to cleanup our codebase.

Given a parameter with low variance (like a bool parameter), we can much easier decide what default value to chose. We can use Inspect this… | Value Origin  (Ctrl+Shift+Alt+A) on the parameter usage to find out which value is being passed most often. We can even make use of bulk quick-fixes, to cleanup related issues in the whole file, project or solution!

Value tracking in ReSharper - Where does the value come from?

Continue reading

Posted in How-To's | Tagged , , , , , | 2 Comments

Exception popup, improved Smart Step Into, symbol servers, and more Rider 2018.1 EAP debugger updates

The first build of the Rider 2018.1 EAP comes with a series of improvements for the debugger. We’ve added a new exception popup, improved Smart Step Into, third-party code can now be debugged using external symbol servers and SourceLink (or via decompilation), we now display source code for return value locals, the process username is displayed in the attach window, and several fixes were made to existing debugger functionality. More than enough to dig a bit deeper!

Exception popup

Up to this point, Rider already provided several ways to look into an exception, helping us figure out why a given exception is causing trouble in our code. Using Exception Breakpoints, Rider lets us explicitly tell the debugger to suspend the program execution when an exception of a particular type is thrown, and gives us the possibility to explore details for that exception from the Debug tool window.

In Rider 2018.1 EAP, we are adding another, simplified way of exploring (unhandled) exception details when things go wrong: the Exception popup. It shows us basic info about the exception that was thrown. We can continue running the application being debugged, or explore more details in the Exception details tool window:

Explore Exception details with Rider's Exception popup

Note: In case you did not know this one yet: when copying an exception stack trace (e.g. from an ASP.NET application) to the clipboard, Rider allows exploring and navigating from that stack trace to the exception location.

Continue reading

Posted in How-To's | Tagged , , , , | 4 Comments

Credential providers for private NuGet feeds in Rider 2018.1 EAP

Many development teams make use of their own in-house or externally hosted NuGet repository, typically containing packages that can only be used and shared within the development team. With the latest Rider 2018.1 EAP build, we are improving support for authenticating against private NuGet feeds by displaying an authentication prompt and by supporting credential providers for popular NuGet hosting solutions such as MyGet and Visual Studio Team Services (VSTS).

Continue reading

Posted in How-To's | Tagged , , | Leave a comment

dotTrace fix in ReSharper Ultimate 2017.3.3

If you’re having problems opening dotTrace Timeline snapshots in 2017.3.2, then you’ll like what we have in store for you today. We’re about to publish a new bugfix update for the whole ReSharper Ultimate family – please welcome ReSharper Ultimate 2017.3.3.

The only thing we’ve fixed is this very dotTrace issue in some environments where dotTrace Timeline Viewer can’t open a snapshot you’ve just collected. Grab the copy here or run ReSharper | Help | Check for updates.

If you don’t experience any problems with dotTrace (or aren’t using dotTrace at all), you may skip this update safely.

Posted in How-To's | Tagged , , | Leave a comment

Free Rider event at the JetBrains Munich office on March 28th

Join us on Wednesday, March 28, 17:00 – 20:15 CET at the JetBrains Munich office for a free event Catching up with JetBrains Rider, featuring Kirill Skrygan, Rider Team Lead, and Matthias Koch, Developer Advocate.

Free Rider event at the JetBrains Munich office on March 28th

At the event, you’ll learn about all the new functionality introduced in the latest Rider updates, such as project templates, the debugger improvements like smart-step into, and how you can start debugging third-party code without any effort. We’ll also take a look at the features brought in by ReSharper and IntelliJ IDEA, such as the reworked code formatting engine, extracting code into local functions, C# 7.1 and C# 7.2 support, a new editor-based REST client, and much more.

Interested in writing high-performance .NET applications? In his talk, Kirill Skrygan, Rider Team Lead, will walk you through some common .NET Performance practices with real-world examples which affect the IDEs you use every day. We will peek under the hood of Visual Studio, ReSharper, and Roslyn, and discover the basic architecture of these gigantic .NET products. Finally, you will understand why Visual Studio is so slow on big solutions (and why it always will be); what is beautiful about Roslyn, why ReSharper might slow down Visual Studio even more, and why Rider is technically the next generation of IDE.

About the presenters:

Matthias Koch is a passionate C# developer and likes to talk about clean code, testing and tooling in general. Much of his spare time in the last 5 years was devoted to his very own open-source projects. He is working at JetBrains as a Developer Advocate.

Previously a principal ReSharper engineer, leading the Rider project since 2015. Kirill Skrygan loves to challenge and resolve performance issues. Obviously, he is an avid IDE believer. Apart from his JetBrains duties, he has developed a custom ORM engine, MVC engine and designer, NDjango and Boo parser and an ontology-based knowledge framework.

All the talks will be presented in English, and light snacks will be served. This is a FREE event, but seating is LIMITED. Please make sure to reserve your spot today!

Posted in How-To's | Tagged , | 4 Comments

Code Cleanup with the ReSharper Command Line Tools

Along with the latest releases of ReSharper, we have made Code Cleanup part of the ReSharper Command Line Tools. These tools allow us to run several ReSharper features from the command line or as part of continuous integration. Two tools have been there for a while — InspectCode (which can run hundreds of ReSharper code inspections outside of Visual Studio) and dupFinder (which helps finding duplicate code in C# and VB.NET code).

The new Code Cleanup command line will apply formatting code style preferences and other improvements such as file layout, removing redundancies, optimizing using, … in bulk mode. This instantly eliminates code style violations in a project or solution, and ensures a uniform code base.

Continue reading

Posted in How-To's | Tagged , , , , , | 7 Comments

Rider 2018.1 EAP is open

Good news, everyone! GREAT news everyone! Today is great because we are welcoming the Early Access Program for Rider 2018.1! Break down the walls to the future and give the first EAP build a try.

Rider 2018.1 Early Access Program

Let’s have a look at the new features and fixes inside:

Continue reading

Posted in How-To's | Tagged , , , , , | 49 Comments

ReSharper Ultimate 2018.1 Early Access Program kicks off

A month ago we released ReSharper Ultimate 2017.3.2 with lots of fixes. We didn’t waste any time and worked hard this month to prepare something new for you again. Today we open the ReSharper Ultimate 2018.1 Early Access Program.

ReSharper Ultimate 2018.1 Early Access Program kicks off

Here is a list of notable changes you may observe after installing the first EAP build:

Continue reading

Posted in How-To's | Tagged , , , , , , , , | 42 Comments