[.Net,/WPF] Can I use PDFTron PDFNet SDK for .NET in "AnyCpu" project?

Q:

Is there currently “AnyCpu” version of PDFTron PDFNet SDK, or is it only available as 32bit and 64bit versions separately?

A:

Due to native dependencies PDFNet is not AnyCPU (i.e. we provide separate 32 and 64 versions).

However, even with this configuration, PDFNet can be used in “AnyCpu” project as described in the following thread:

https://groups.google.com/d/msg/pdfnet-sdk/s2tSvtfoKRg/_jjItqx_31sJ

“ ‘Any CPU’ selection means different things in different versions of Visual Studio, however you can definitely make and make the app work correctly on both x86, x64, and other platforms.

The issue is not PDFNet specific any there are multiple solutions:

a) The simplest option is to select x86 in your project solution. With this option the app will work on both x86 and x64 sytem.

b) A bit more complicated option is that you select ‘Any CPU’ mode in your app. As part of the app install you would copy/install a version of PDFNet that matches the target hardware (i.e. x86, x64). This is possible because both versions have the same signature/cert.

c) Alternatively you can register both DLLs in GAC.

d) In case you do not want to have ‘installer’ and you still want to use ‘Any CPU’ there are also multiple options some which are outlined here http://stackoverflow.com/questions/108971/using-side-by-side-assemblies-to-load-the-x64-or-x32-version-of-a-dll. ”