If I understood your question correctly, it should be as easy as right-clicking the project in question on go to the debug tab, you should see "Start External Program" option. Browse to your \root\bin folder and select myapp.exe and you should have the version of myapp that you deployed in the post build event run.
Visual Studio: run in debug mode from different folder
-
02-10-2022 - |
Вопрос
Good morning.
I wrote a command line *.exe app (call it myapp.exe
) that accept some arguments and make his work basically using input and output files.
This app is called by a 3rd party application, pretending that myapp.exe
is in his \root\bin
folder.
Input and output files are difficult to replicate for tests, so I would find much easier do something like this:
- Build my solution
- Using some
PostBuildEvents
, deploy assemblies in calling app's\root\bin
folder on my disk - Launch Visual Studio in debug mode, but using assemblies and
*.pdb
deployed in\root\bin
folder
Is that a thing I can do?
I know Visual Studio Remote Debugging function, but myapp.exe
is not a process I can attach to.
Some ideas? :)
Решение
Не связан с StackOverflow