2
Answers

"could not load file or assembly" on First Rebuild

Ask a question
Rahul M

Rahul M

13y
1.9k
1
Hello,

I have C# project created in VS 2008. I have referenced another DLL to it and kept Copy Local option to true.When I am doing first rebuild it fails with "could not load file or assembly" message.and then if build without any changes builds fine.

In the background rebuild cleans bin directory and build solution file at this time refrenced DLL is got deleted so it thrws exception on next build referenced DLL remains in bin directory and project builds succesfully.

Now I want to know how can I resolve issue and ensure succesfull build each time.

Thanks

Answers (2)