Issue with mixed framework solutions.

Oct 29, 2009 at 3:52 PM

When working with mixed framework solutions on set platforms (eg. x86 and x64) a warning “Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor” and similar results when built for x64.  This is essentially harmless in itself because we can ignore warnings, but it could be indicative of a subtle bug.

To repro:

1)      Create two projects in a solution and set one to framework version 2.0 and the other 3.5.

2)      Install NTrace as per instructions.

3)      Add a trace statement to each project.

4)      Use the configuration manager to create two new platforms, x86 and x64.

5)      Set the platform to x86.

6)      Build all – should work.

7)      Set the platform to x64.

8)      Build will issue warnings.

 

Oct 29, 2009 at 5:26 PM

Hi,

Strangely I'm having the same problem. I looked into this and I think the problem for me is that warning suppression is not being honored by the NTrace build scripts. I am not familiar enough with .target files to know how to fix this. Basically if I try to suppress 1607 it doesn't get passed through to the csc when it is called by ntrace.

Any idea how to fix this?

Thanks,
Matt