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.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,851 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
966 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 42,876 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