Go to the project properties into the Debug tab, you should set it up something like this:
This will even allow breakpoints in Visual Studio to be hit from your dll, and be debugged as normal.
Pregunta
I use Visual Studio 2010, C#, .Net 4.0.
I want to create a VS2010 Template for a project. The output is in a .dll file.
I already have a program ABC.exe . This program can get a path to a .dll as an input parameter.
Here is my need: I need to customize the behavior of the Debug process in my VS2010 Template the following way. First of all, the Debug option should be available (even though the output is a .dll). Secondly, when I press "Start Debugging", the following actions should take place:
the output .dll should be built
the program ABC.exe should be started with the input string containing the path to the output .dll
VS attaches itself as a debugger to ABC.exe
Is it possible to customize a VS2010 Template this way?
Here are the steps that I can do separately from the task that I'm interested in:
What I really have no clue about is the following:
Any help is very much appreciated!
Solución
Go to the project properties into the Debug tab, you should set it up something like this:
This will even allow breakpoints in Visual Studio to be hit from your dll, and be debugged as normal.