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

前端 未结 2 1269
不知归路
不知归路 2020-12-10 12:36

Initially, I created a console application using Mass Transit as my service bus. Recently, I switched to NServiceBus, which doesn\'t require you to make a console applicatio

相关标签:
2条回答
  • 2020-12-10 13:02

    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.

    0 讨论(0)
  • 2020-12-10 13:05

    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.)

    0 讨论(0)
提交回复
热议问题