TIPS: Case Transfer 32 and 64-bit component

Source: Internet
Author: User

In a recent case, a component has 32-bit yuan and 64-bit yuan, such as Chilkat. net, because Visual Studio 2010 is a 32-bit component. If 64-bit components are used at the time of development, some problems may occur, such as aspnetcompiler loss of memory, in addition, the view of the MVC case was released during the design process, causing the failure to use intelliisense, so there is no way to use a 32-bit component at the time of development, but I don't want to manually Replace the component at the time of development. How can I do this?

 

When a view is desing, an issue occurs, making it impossible to use intelliisense.

 

 

In fact, the cost is reduced to 64-bit components during the execution, and the cost is still simple, as long as. CsprojModify the secret.

 

The final structure of the second solution, Libs decentralized the non-bitwise OR 32-bit organization, and the 64-bit information, a 64-bit component with bitwise points.

 

Open. CsprojTIPS: You can change the exam form to the following.

<Project>... <! -- Use a 32-bit component for debugging --> <reference include = "chilkatdotnet4" condition = "'$ (configuration)' = 'debug'"> 

When building in the release mode, 64-bit components are used, while 32-bit components are used in the bebug mode, while the release mode is used in the release phase, the effect of copying to the cut component.

Tip:

In the example, the number of restricted items in the lower part is less than that in the lower part. If you need to release the files, you can change the number of restricted items

<Reference Include="ChilkatDotNet4" Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">

There are also MVC cases, which may be used to view and check zookeeper during release. However, the reason is that the browser uses a 32-bit component, you also need to modify it.

<Project>... <target name = "afterbuild" condition = "'$ (mvcbuildviews)' = 'true'"> <! -- You must specify the address of the 64-bit zookeeper. --> <aspnetcompiler virtualpath = "Temp" physicalpath = "$ (projectdir)" toolexe = "C: \ WINDOWS \ Microsoft. net \ framework64 \ v4.0.30319 \ aspnet_compiler.exe "/> </Target>... </Project>
Related Article

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.