C# Projects in CMake-Made VS2010 Solution Must Be Unloaded/Reloaded to Avoid Being Skipped

后端 未结 1 453
被撕碎了的回忆
被撕碎了的回忆 2020-12-20 10:24

I\'m using CMake to generate a VS2010 solution with both C/C++ projects: native console app, static libs and native DLL; and C# projects: managed console app and managed DLL

1条回答
  •  礼貌的吻别
    2020-12-20 11:12

    Had the same problem here.

    Our cmake generated solution created configurations for Win32 and x64 platforms while the external C# project had x86 and x64 platforms. After cmake generated the solution, all projects (internal and external) are set to use platform Win32. (Check the solutions Configuration Manager.)

    To force cmake to include the external projects as x86, specify the PLATFORM parameter when calling include_external_msproject.

    include_external_msproject(TestApp "/TestApp/TestApp.csproj" PLATFORM x86)
    

    (And of course ensure that you just do this for the x86 version...)

    0 讨论(0)
提交回复
热议问题