I have a project which configured for "Any CPU". Now I have to refer a third party dll which has x86 and x64 compiled versions seperately(I cant get AnyCPU version of third party dll). I have changed the configuration file of my project to refer particular dll based on the platform as shown below.(This is a sample project config file)I have a project which configured for "Any CPU"