Stephen Drew
Stephen Drew

Reputation: 1422

Warning AL1073 when generating satellite assemblies

Under Visual Studio 2010, I am getting a compiler warning when generating a localized satellite assembly for a project. I am running Windows 7 64-bit.

The project is being built in x86 (it has to be as it indirectly references an unmanaged DLL - via Oracle ODP.NET).

The MSBuild log generates the following warning:

(GenerateSatelliteAssemblies target) ->

ALINK : warning AL1073: Referenced assembly 'mscorlib.dll' targets a different processor [xxx.csproj]

Is there any way to force this to use the same version of the framework as the assembly it is being generated from?

It is very frustrating as I like to have zero warnings in our build, and this is always there.

Upvotes: 5

Views: 2978

Answers (1)

user1078408
user1078408

Reputation: 11

I reproduced this error (by mistake). My projects target x86 (because of 3rd party DLLs), but I ran MSBuild in VSx64 2010 command window. That sets Platform=X64 among other things. When I ran it under VS 2010 command window (for x86), I didn't get this warning.

Upvotes: 1

Related Questions