Set a startup project in Visual Studio in order to debug

C

Curious

I have two projects in C#.NET. One is "Monitor" and creates an
executable called "Monitor.exe". The other is "CoreEngine" and its
output is a .dll file called "CoreEngine.dll".

"Monitor.exe" depends on "CoreEngine.dll". That is, I must put
"CoreEngine.dll" in the bin folder together with "Monitor.exe" in
order to run "Monitor.exe".

Now I'll need to debug "CoreEngine.dll". I'll need to set
"Monitor.exe" as the startup project in "CoreEngine". What are the
steps to set this up in "CoreEngine.dll" in Visual Studio 2005?

Thanks!
 
M

Morten Wennevik [C# MVP]

Hi,

If both projects are within the same solution, then you are all set (use project references to the library).

If the library project is in its own solution use the DEBUG tab in the project properties to specify that the Monitor.exe should start as part of the debug process, and maybe set the working directory to the directory where monitor.exe resides.

Putting the dll file in the 'working directory' is set using the BUILD tab in the project properties.
 
C

Curious

Thanks for the suggestion!

I did the following and it works:

1) Set "Monitor.exe" as startup project;
2) Copy "CoreEngine.dll" and "CoreEngine.pdb" to the Bin folder where
"Monitor.exe" is located.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top