在 x86 平台的解决方案中编译共享项目

Compiling shared project in solution for x86 platform

我在构建解决方案后遇到 MSIL dll 问题。 我有 2 个解决方案一一构建。解决方案基于 Jenkins 构建,参数如下:

/t:Rebuild /p:Configuration=Release /p:TargetFramework=v4.0 /p:Platform=x86

解决方案 1

解决方案 2

所有项目都已输出到 common\bin 文件夹。构建结束后,在 bin 文件夹中,我找到了用 MSIL 构建的项目 A。解决方案 2 将其替换为这些 dll。

我使用 .NET 4.0.30319 文件夹中的 MSBUILD。

我从解决方案中删除了 AnyCPU 和混合模式。另外我从每个项目中删除了这个配置。

如何告诉 MSBUILD 在 x86 平台上构建每个项目?

你做对了。它只是你需要使用 /p:PlatformTarget=x86 而不是 /p:Platform=x86