Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 599
Stephen Drew Avatar asked Nov 13 '22 22:11

Stephen Drew


1 Answers

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.

like image 68
user1078408 Avatar answered Dec 18 '22 05:12

user1078408