jmevel / DetectArchitectureSample

Sample project demonstrating how to retrieve the architecture the program has been compiled for

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect Architecture Sample in .NET Core

Sample showing how to detect the architecture the program has been compiled for.

In that way we could do something like this

#if Is64Bit
    [DllImport(@"Resources/HIDAPI/x64/hidapi")]
#else
    [DllImport(@"Resources/HIDAPI/x32/hidapi")]
#endif

About

Sample project demonstrating how to retrieve the architecture the program has been compiled for


Languages

Language:C# 100.0%