How do I force MSBuild to compile for 32-bit mode?

前端 未结 8 1320
谎友^
谎友^ 2020-12-30 20:04

I\'m using MSBuild (via NAnt) to compile a bunch of VB.NET assemblies. Because these assemblies depend on COM Interop, I need to guarantee that they run in 32-bit mode on 64

8条回答
  •  情书的邮戳
    2020-12-30 20:47

    Just in case this helps, I used this commandline to build my x86 platform target:

    C:\Windows\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe my.sln /t:build /p:Configuration=Release;Platform=x86
    

提交回复
热议问题