5

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.

4

1 回答 1

1

我重现了这个错误(错误地)。我的项目以 x86 为目标(因为第 3 方 DLL),但我在 VSx64 2010 命令窗口中运行了 MSBuild。这会设置 Platform=X64 等。当我在 VS 2010 命令窗口(对于 x86)下运行它时,我没有收到此警告。

于 2011-12-02T23:58:56.887 回答