Rider silently starting unrelated project

Hi,

I have a solution with three projects

  • An Avalonia app
  • A class library
  • A console app

The Avalonia app and console app both reference the class library but not each other. When I debug the console app I've noticed that the Avalonia app starts but without the UI or debugger which I have verified by having the Avalonia app Startup.cs write a text file.

This is problematic for me seeing as how my Avalonia app makes some connections at the start and when I actually start the Avalonia app myself these connections get blocked as they have already been made by the headless Avalonia app the console app started.

My run configurations look fairly normal with the only pre-launch action being to build the project with the exe path being in the standard build folder.

I've also verified this behavior doesn't happen in Visual Studio when I start my console application there.

My colleague also has this issue on his machine so I don't think it's specific to my IDE.

1
1 comment

I tried to reproduce the problem you mentioned but didn't get the same results. 

You can try with the following steps to isolate the issue from the environment:

  1. Clean the solution, delete bin and obj folders of the Avalonia project. Debug the console app.
    In my test it did not build the Avalonia project, thus it will not be executed.
  2. Start the console application through dotnet run, will you see the Avalonia project started?
    Is there any difference with attaching the debugger on the console app?

If you can reproduce the problem with a sample, please feel free to post here.

0

Please sign in to leave a comment.