Re: DLL cannot be accessed
IDK, hold on...
Why does it have to be in the Bin Release folder?
Why not the Debug folder and to always copy for it's properties?
Re: DLL cannot be accessed
Solutions with multiple projects don’t create a .dll on the debug folder just on the release one.
Re: DLL cannot be accessed
Quote:
Originally Posted by
At--o
Solutions with multiple projects don’t create a .dll on the debug folder just on the release one.
So if you copy a DLL from Windows System or other location -other than your Solution folders, it will still build and copy to the Release folder?
is your Project set in Properties to build and run from Release?
Or is this a User Control- custom-DLL -and so it gets copied to Release folder on Build?
It is just that I think that DLL can be in any folder under Solutions -and therefore DLL does not have to be in release or even Debug -because they ARE being used during runtime.
IDK.
I think IMHO, you are not correct.
I always ask many questions because I need to know the answers especially if it 'appears' to be mal informed.
Show me the link that states DLL must only be in release folder if multiple projects involved within same solution.
please - :)
Re: DLL cannot be accessed
Quote:
Originally Posted by
At--o
Solutions with multiple projects don’t create a .dll on the debug folder just on the release one.
Yes they do. If all your projects in the solution is set to debug mode in the Configuration Manager it will build them into the Debug folder.
Whenever you get that error you don't need to close and reopen the project you can simply click on the Clean Solution on the build menu and then build it again.
Re: DLL cannot be accessed
Thank you Mr. Andersson(hmmm fragments of The Matrix come to mind).
I knew he was incorrect in his assumptions, but I lack the confidence to set things straight because I have been away from programming .NET for several years.
Hey OP.
It's all good.
We all learn these things as we go...
Good Luck!
Re: DLL cannot be accessed
I tried the clean solution approach, no go. Other than closing my solution, I have not found a way to get around this. It is very annoying I might add.
Re: DLL cannot be accessed
this might be a long shot but, did you check task manager to see if there's still something running?
Sometimes when i'm working on my database I get a similar error that the file is in use. Sure enough, when I stopped/closed my app sql process was not closed. After I end task to the process, re-run it works fine.
Also compiling a dll causes exposed member names to get "mangled". Might this be one of the culprits? There are ways around this so the exposed member names either stay the same or get set to an alias of your choosing.