Can I open a file from my file explorer and have it run my Visual Studio solution?

Trevor Youngman 1 Reputation point
2022-08-30T15:07:38.073+00:00

Hello,

There is a bug in my app that only occurs when the app is started from the file explorer (double-clicking a file to open the app and file within the app)
Is there a way to have my Visual Studio solution run when opening from the file explorer?

I tried attaching the file explorer process to my app in debug but that did not seem to work, or I did not do that correctly.

Thanks.

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 49,551 Reputation points
    2022-08-30T17:15:27.567+00:00

    Well, I can't tell what your problem is from the general descriptions you have given. But the following link gives instructions on how to configure Windows so that whenever your application is launched it will be automatically run under the Visual Studio debugger.

    How to: Launch the Debugger Automatically


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.