Building & syncing projects

Hi,

when I have solution open with 40 projects, and I press the debug icon on Rider, the project syncing  progress starts then only after it finishes it will start the build process, It does it every time when I want to start a new debug build, why, it is slowing down the build process, especially when you have lots of project open like I have? When you do lot of debugging, fixes etc, this adds up to a lot of time wasted.

Some context, I have a source folder with solutions folder with multiple solutions files open (One is Client, One is Server), one solution has 40 project the other has over 80 project opens.  I usual have at least two riders ide's open. 

 

I am using the latest version of Rider, I have noticed since the previous version(s). It is doing this on Windows & MAC.

0
6 comments

Hi, 

No body getting the same issue?

0

Hello Corrie,

Thank you for contacting Rider support.

I am sorry to hear that you experience such an issue.

The "Syncing projects" task is intended to construct (on solution open) or update (on project changes) the project model. Project model is a mandatory IDE component that later participates in providing most of the advanced IDE features (completion, navigation, etc..)

I would appreciate it if you could share the additional information as described below:

  • How long does "syncing projects" take for your solution, and when does this task appear?
  • How frequently does it happen?
  • Before pressing the “Debug” what actions do you perform?
  • Do you switch branches by change?
  • Do you edit .csproj files and Alt+Tab between Rider instances?
  • Do your solutions reference the same projects by chance?

Alongside answers, would you mind sharing Rider logs, so that we can take a deeper look?

  • Go to Help | Diagnostic tools | Choose Trace Scenarios;
  • Enable the trace scenario for ProjectModel;
  • Reproduce the issue;
    • Ensure no background tasks are running;
    • Perform the actions that cause the "Syncing projects" task;
    • Wait for it to finish;
    • Reproduce one more time;
  • Collect the full log bundle via Help | Collect Logs and Diagnostic Data;
  • Disable the trace scenarios enabled;
  • Attach the resulting log bundle to this ticket or upload it to our server and share the ID.

Have a nice day!

0

Hi,

Here is the ID: Upload id: 2024_12_02_ExPPYJSETBWUTRUCSVqx24 (file: rider-logs-20241202-094252801349229038384784.zip)

  • How long does "syncing projects" take for your solution, and when does this task appear?
    • It happens when I press the Debug icon or ALT + F5. I would do some some simple code change. I would press the debug icon then it would show syncing projects, the I would say after 5 to 20 seconds, depending on time of day changes that has been done, the a build would only starts. I would Debug, find an issue in my code press stop. Fix the issue, sometimes the files changes are across multiple projects. I would press Debug again, then it would show syncing projects, sometime, also when I  pressed stop, it would start up. I have done no changes just pressed stop debugging. I would make one single line change, press debug, then it would fire syncing projects .
  • How frequently does it happen?
    • Currently it seems with every build.
  • Before pressing the “Debug” what actions do you perform?
    • I would Fix code, or add new code, normal programming tasks.
  • Do you switch branches by change?
    • No.
  • Do you edit .csproj files and Alt+Tab between Rider instances?
    • Rarely, also I might switch, but for your test I did have two solutions open, I did no switching, between project other than opening both. 
  • Do your solutions reference the same projects by chance?
    • Yes, They share one project. Also I did have visual studio 2022 open. I just double checked I closed, the Visual Studio, and it still started with syncing projects when I pressed the Debug button.

Hope the information helps.

0

Hello Corrie,

Thank you for the details shared. Is this option enabled in Rider settings: Settings | Build, Execution, Deployment | Toolset and Build | Restore NuGet packages before build ? If so, try unticking that and let me know if that changes anything.

Have a nice day!

0

Hi Dmitry,

The restore is not ticked. See below my settings.

0

Hello Corrie,

Thank you for the clarification. I submitted this issue to our tracker to investigate it alongside developer: RIDER-120842 Rider "Syncing projects" every time Debug or Run is called

Let's move our discussion there. Would you mind sharing a screenshot of the sample run configuration you launch (Run | Edit Configurations) and verifying if you have any “Before build” tasks defined in your .csproj files or in Directory.Build.props. 

Have a nice day!

0

Please sign in to leave a comment.