Browse Source

Force-set platform type to managed targets. (#1011)

In some environments mono defaults building managed targets in architecture different from the host (like AnyCPU or x86 on x64 host). For example on x64 host (linux) build system would produce i686 architecture managed executables while native libraries are built as amd64. In such case managed executables are unable to load native libraries because they target different native architectures. This change ensures architecture consistency between all built binaries.
pull/1012/head
Rokas Kupstys 8 years ago committed by Dimitar Dobrev
parent
commit
b67e9bc9b2
  1. 1
      build/Helpers.lua

1
build/Helpers.lua

@ -100,6 +100,7 @@ end @@ -100,6 +100,7 @@ end
function SetupManagedProject()
language "C#"
location ("%{wks.location}/projects")
buildoptions {"/platform:".._OPTIONS["arch"]}
dotnetframework "4.6"

Loading…
Cancel
Save