Last week I had a lot of trouble to get a Silverlight project working on our build server. I kept getting the following error
Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
All the correct tools, SDK and so on were installed on the build server. I double checked if all the version were correct and everything seemed fine. As a last resort I started adding the following DLL’s from the Silverlight directory to the Global Assembly Cache manually:
- System.Windows.dll
- System.Core.dll
After doing this, the problem was solved. Strange…