compile and debug a single .cs in IDE?

A

Afshar

Hi Group,
Can I compile and debug a single .cs in IDE?
I want to set a breakpoint on my single .cs (in IDE) and call its
method from other projects. This .cs is compiled to a dll every time
and added to other projects. And compile it directy, NOT by csc.exe.

Regards,
Afshar
 
N

Nicholas Paldino [.NET/C# MVP]

Afshar,

No, you can not do that, you have to load the project that the CS file
is included in and then run the executable which makes reference to the
assembly.

Hope this helps.
 
A

Afshar

Hi Nicholas,

I'm not the using the .cs directly, however I compiled it with csc.exe
to a library (a dll) and refrenced this dll from other projects. So
still can't set a breakpoint on the single .cs even I've loaded it in
IDE with consumer project.

Regards,
Afshar

Afshar,

No, you can not do that, you have to load the project that the CS file
is included in and then run the executable which makes reference to the
assembly.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Afshar said:
Hi Group,
Can I compile and debug a single .cs in IDE?
I want to set a breakpoint on my single .cs (in IDE) and call its
method from other projects. This .cs is compiled to a dll every time
and added to other projects. And compile it directy, NOT by csc.exe.

Regards,
Afshar
 

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