Rider is running/debugging an old build

You have made some changes but Rider sticks to an old build? First of all, have a look at your Run/Debug Configuration and make sure that "Build project before run" is added to the list of actions to be performed before the launch:

In case it is there then please let us know about the problem. Here are the troubleshooting steps:

1. Go to 'Rider -> Settings/Preferences -> Build, Execution, Deployment -> Toolset and Build'.

2. Check which MSBuild version is used. Does it lays in .Net SDK or in Visual Studio folder? 

 3. Is "Use ReSharper build" checkbox turned on?

 4. Turn on "Write log to file" checkbox and choose "Normal" verbosity. IMPORTANT: don't forget to turn off this checkbox when you collect all the logs. 

5. Close Settings dialog.

6. In case you are on Mac/Linux then check your Mono version.

7. In case you have .Net Core project then check your .Net Core version.

8. Make some changes in the code and run your project.

9. Make some changes in the code again and build solution via the menu on the top.

 

10. Make some changes in the code one more time and build selected project via Solution Explorer.

11. Go to 'Help -> Show Log in Explorer/Finder/File Manager'.

12. Zip all the log files in the folder and attach it to Support request or Youtrack ticket.

13. Turn off "Write log to file" checkbox (see step 2). 

That is it - we will analyze the log files and see why the project doesn't run correctly. Thank you for your cooperation!

 

3 out of 25 found this helpful
36 comments

Marko We do not have a YouTrack issue for this problem, and, unfortunately, we didn't manage to reproduce it on our side yet.

 

Dave Cousineau This scenario works fine on my machine on three sample .NET 5 projects. Would you mind sharing more details about the problem with us? (cc Dominic Warchalowski Denis Marko)

We normally need the following:

1. A screenshot of `File | Settings | Build, Execution, Deployment | Toolset and Build` page to see the MSBuild version and `Use ReSharper build` toggle

2. Rider logs collected right after the issue occurred (Help -> Collect Logs)

3. Repro project/solution with the steps to reproduce the problem

Please collect the information and add to a new YouTrack issue.

Edited by Julia Vaseva
0

Mikkel, we would be glad to investigate your issue. Would you please open latest Rider version, reproduce the problem and call Help|Report a Bug, agree to attach logs.

0

Also a reminder to check if you have a docker running on the same port...

Edited by Rosent92
0

With `ReSharper Build` it might be caused by indirect dependencies in your solution.
Workaround might be adding ProjectReference-s from starting project to those, which are not build automatically,
If you think, it is a bug, please create an issue with Help->Report a Bug and you would get asked for more details during investigation.

0

Hello,

This seems related to another issue I have. When i do changes on a running program, and apply the changes. It still runs the old version. The changes are not applied at all.

0

Not sure how related this is, but this is the best place I've found after much Googling.

I have what looks to be the same issue, but when using Resharper as part of Visual Studio.
I've enabled Resharper Build and if I just hit Debug > Start then it will correctly build whatever projects require building, but then doesn't use the artifacts produced for the debugging session. I've verified this by adding / removing various statements and that no breakpoints are hit because the executing code is different from the source.

Visual Studio 2019 Professional, 16.7.2

Resharper 2020.2.1

0

Please sign in to leave a comment.

Have more questions?

Submit a request