.NET 3.5 Visual Studio 2008 Team Edition
I have an XML file that I've added to an assembly via the Resources tab of the project's properties; and have marked the Access Modifier as public. While running in debug mode, there are no problems referencing the assembly and the embedded resource in another project, i.e.,
XElement errorMap = XElement.Parse( Properties.Resources.ErrorMapper );
However, when the projects are run in Release mode, I receive this error:
Could not load file or assembly 'XXX.XXX, Version=1.1.0.25104, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Why would the projects run fine in Debug mode but not Release mode?