Open carlos-quintero opened 4 years ago
/cc @AaronRobinsonMSFT
This is also important for ARM64 for projects that want 3-architecture builds, like WinAppDriver.
I created new issue at https://github.com/dotnet/sdk/issues/37570 as the build scripts for COM hosting are in the SDK repository.
Currently:
If an assembly targets the architecture Any CPU then two .comhost.dll files should be generated, because the autor may want to create both x64 and x86 COM servers from the same .NET "Any CPU" assembly (ex: consider a .NET-based add-in for Office 64-bit and Office 32-bit). That was possible with .NET Framework with a single build, but it is not possible with .NET Core: two builds are required, one for architecture x86 and another for architecture x64, and you need to move the output files before the second build.
I suggest the following approach: