-
Notifications
You must be signed in to change notification settings - Fork 17
Adds x86 and x64 build platforms #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@augustoproiete So if my library is mixed code and targets x86, then the ExcelDnaDoc that processes it needs to be x86 itself? |
|
Sorry, I meant @Cronan ... |
|
I’ll find the link where they go into detail, but yes, some libraries will throw if you try to load them into AnyCPU (mine does this)
… On 31 May 2018, at 17:36, Govert van Drimmelen ***@***.***> wrote:
@augustoproiete So if my library is mixed code and targets x86, then the ExcelDnaDoc that processes it needs to be x86 itself?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
I presume an alternative would be to use something like Mono.Cecil to examine the assemblies. |
|
I guess this means the NuGet spec would need to have platform-specific binaries. |
|
Some of my dependant assemblies are mixed-mode assemblies, which contain both native and managed code. These cannot be loaded into an AnyCPU assembly - they cannot only be loaded into something with the same bigness as them - x86 or x64.
https://msdn.microsoft.com/en-us/library/x0w2664k.aspx
… On 31 May 2018, at 19:31, Ivan Cronyn ***@***.***> wrote:
I’ll find the link where they go into detail, but yes, some libraries will throw if you try to load them into AnyCPU (mine does this)
> On 31 May 2018, at 17:36, Govert van Drimmelen ***@***.***> wrote:
>
> @augustoproiete So if my library is mixed code and targets x86, then the ExcelDnaDoc that processes it needs to be x86 itself?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Yeah, we’ve bumped into the NuGet issue before, good idea to add an issue. I think this is a real minor case, I’m just happy not to have to add the extra build targets in manually.
… On 31 May 2018, at 19:39, Govert van Drimmelen ***@***.***> wrote:
I guess this means the NuGet spec would need to have platform-specific binaries.
Should I add an issue to track this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Fixes #9
If your library has x86 or x64 compiled-code and COM dependencies, then an AnyCPU build of ExcelDnaDoc will not work, and throws a 'BadFormatException'.
This change allows x86 and x64 builds.
Samples are not built when choosing x86 or x64