I am currently resolving all warnings in our project solution and I have troubles with one last warning: "mismatch between processor architecture". This warning appears in our Unit Test project which has a lot of references to other components and external assemblies that are used for a wide range of Unit Tests.
The warning only appears with one external assembly we have to include for Unit Tests and a total of six Fakes we are using. If I remove the external assembly and all Unit Tests that use this assembly, I can compile the project without any warnings. If I remove the six Fakes and all Unit Tests that use them, I can also compile without any warnings. However, the existence of the Fakes and the external assembly cause the warning.
Visual Studio error log states "Microsoft.QualityTools.Testing.Fakes.targets" as source of the warning. So I checked the project files that are generated by Visual Studio for the Fakes and I found references to almost all files referenced by our Unit Test project. I would have expected to find only the references of the projects that are faked!
I could solve my warning by removing the reference to the external assembly from the Fakes projects. However, I have no idea how to tell Visual Studio not to include this assembly into the generated Fakes. I am thankful for any hint you might have for me!
I could also solve the warning by suppressing the warning message, but I also do not know how to do this for Fakes.