What is the impact of the platform-any CPU and x86 under the compilation option build of VS?
Now the problem is that one of my assembly with any CPU can not be run under the 64-bit system, but compiled with x86 OK
The reason is that if you compile with any CPU, the default operation of the 64-bit machine is 64-bit,
And my assembly needs to call a 32 COM library, so it doesn't work.
As long as the x86 compiled, then the program is a 32-bit program, relying on WOW64 to run, so OK
So, if assembly needs to use the Win32 library,
Then the compile option will not be able to use the default any CPU.
I go, any CPU means not any CPU can be used, but the currently compiled environment of this machine is available
let's get to know each other.
Mixed Platform vs any CPU
Team Build deals withSolutionConfigurations-these is the platforms (e.g.. NET or Win32) and configurations (e.g. Debug or Release) you typically see in combo boxes within Visual Studio if you h Ave a solution loaded (if you hover over these boxes the ToolTips would say "solution platforms" and "solution Configuratio NS ", respectively). When any of the projects in a solution is of the same type (e.g.C#/VB projects) theSolutionConfigurations'll match up exactly with theProjectConfigurations. Once you has projects in a solution that has mismatched configurations/platforms, Visual Studio creates theSolutionLevel configuration (s) "Mixed Platforms/debug" and possibly "Mixed platforms/release". These configurations is just mappings to individualProjectLevel configurations.
For example, if you have a C # project and a C + + project, typically "Mixed platforms/debug" would map to ' any cpu/debug ' for The C # project and "Win32/debug" for the C + + project.
To see these mappings, open up the Configuration Manager (either through theBuildmenu or by clicking on the platform or configuration combo box and selectingConfiguration Manager ...). You should see combo boxes for the active solution configuration and the active solution platform and then a table showing You are the project level mappings. This would show you the platform generated for each project under the solution configuration.
What is the impact of the platform target-any CPU and x86 under the build option build of VS?