fhnaseer
fhnaseer

Reputation: 7277

Project references contain 32bit or 64bit

I have a project (C# Exe) whose platform target is x86. It contains references of different third party libraries. I am thinking to shift application from x86 to AnyCPU or x64.

Now problem I am facing is that I don't know references libraries are built on x86 or any other. One way is that I check one by one third party libraries and check their platform target (a length process as it contains too 50+ references).

Is their any way to find that dependent libraries are x86 ones or x64 or other.

Upvotes: 0

Views: 92

Answers (1)

Tigran
Tigran

Reputation: 62265

You can use GetAssemblyName method to retrieve AssemblyName type, where you have ProcessorArchitecture property which provides that information.

Upvotes: 1

Related Questions