Can't debug unless copylocal=true?

B

Brett Romero

When I set copylocal=false on my project and try to step through it, I
get a file not found on one of my dependencies. The error is thrown
before anything executes. The file is in the referenced path I've set
in Studio. Everything should be fine. However, I can't walk through
until I set copylocal=true.

The program will run either way. It's just an issue when I try to
debug.

Any ideas why the difference and how I can debug with copylocal=false?

Thanks,
Brett
 
M

Michael Nemtsev

Hello Brett,

copylocal=true copy all your references to the ouput directory, because app
uses all related dlls from the local folder.
When u put 'false' dll are in the origin location and you app can't see in
when is running (if your dll are not in GAC)

if u use copylocal=false for some references just install them in GAC

BR> When I set copylocal=false on my project and try to step through it,
BR> I get a file not found on one of my dependencies. The error is
BR> thrown before anything executes. The file is in the referenced path
BR> I've set in Studio. Everything should be fine. However, I can't
BR> walk through until I set copylocal=true.
BR>
BR> The program will run either way. It's just an issue when I try to
BR> debug.
BR>
BR> Any ideas why the difference and how I can debug with
BR> copylocal=false?
BR>
BR> Thanks,
BR> Brett
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
B

Brett Romero

I think it is a little different than that Michael. Because VS.NET
does have references to the DLLs that you have added to your project
(you can see this in the configurations or when you add another DLL),
the app does in fact run just fine. The problem is "debugging".

Brett
 

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