What is the impact of the platform target-any CPU and x86 under the build option build of VS?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.