32-bit engineering to 64-bit migrations

Source: Internet
Author: User

Recently, the team put forward an egg-ache requirement to turn the 32-bit project into 64-bit, and to produce debug x86, Debug x64, Release x86 release x64 these 4 versions, and do not need anycpu

After a few days of groping, found that for third-party C + + and other DLLs very good processing, direct replication, covering the past can be, but C # itself we through using the DLL because it will generate information records, so no

However, the dll,64-bit program for the C#32 bit can actually be called directly, so it has nothing to do with the impact.

Start the migration tour below

First set up a test project

Then set the EXE, or the site project's compilation environment, to ensure the unification of all projects, and the generation are checked

Compiler MSBuild compiles our stuff, actually to find csproj files, and as for how MSBuild is used, the blog park grabs a lot and doesn't repeat it.

All configurations will eventually be rendered as:

But be aware that if your class is in an unsafe code, you need to configure the Allunsafeblocks node

Then copy the third-party thing in the preprocessing to replace, guarantee the call

Finally, you can use MSBuild to compile what we need at once.

32-bit engineering to 64-bit migrations

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.