Rahul M

Rahul M

  • NA
  • 9
  • 11.4k

"could not load file or assembly" on First Rebuild

Jul 13 2011 7:55 AM
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)