How to add x64 (or Any CPU) as a build option in Visual Studio 2010 (from console application to class library)

余生颓废 提交于 2019-11-27 23:35:51

You just need to add a configuration for Any CPU in the configuration manager.

1) Right-click the solution and select Properties

2) Select Configuration Properties, then click Configuration Manager...

3) Change the Active Solution platform to Any CPU. If there is no Any CPU platform, skip to #4.

4) Click the arrow in the combo box under the Platform column for your class library, and select New...

5) Make sure "Any CPU" is selected under New Platform. If there was no Any CPU solution platform in step 3, then make sure the "Create new solutions platform" checkbox is checked. Then click OK.

6) Check the checkbox in the "Build" column for your class library

7) Close out of the Configuration Manager, and open the properties for your class library

8) Select Any CPU for Platform, then select Any CPU for Platform target, and save.

(Step 8 may or may not be necessary, depending on what has been done with the configurations previously.)

Anathi

Just add a configuration for Any CPU in the configuration manager.

  1. Right-click the solution and select Properties.

  2. Select Configuration Properties, then click Configuration Manager.

  3. Change the Active Solution platform to Any CPU. If there is no Any CPU platform, go ahead to step 4.

  4. Click the arrow in the combo box under the Platform column for your class library, and select New.

  5. Make sure Any CPU is selected under New Platform. If there was no Any CPU solution platform in step 3, then make sure the "Create new solutions platform" checkbox is checked. Then click OK.

  6. Check the checkbox in the "Build" column for your class library

  7. Close out of the Configuration Manager, and open the properties for your class library

  8. Select Any CPU for Platform, then select Any CPU for Platform target, and save.

Step 8 may or may not be necessary, depending on what has been done with the configurations previously.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!