Can't change target platform to “any CPU”

前端 未结 3 889
青春惊慌失措
青春惊慌失措 2020-12-12 15:54

I work on an x86 pc and use .NET4.0 (same probelem with 3.5) in VS2010. When I make a new Project (e.g. WinFormsApp), the first thing I want to do is to change the target pl

相关标签:
3条回答
  • 2020-12-12 16:28

    To change target platform do the following:

    [1.] Open the configuration manager

    enter image description here

    [2.] In platforms, select new.

    enter image description here

    [3.] New platform select x64 or you need, in "copy settings from" select "Any CPU" or "Empty", and uncheck the "Create new solution platforms"

    enter image description here

    source: ericklan.com

    0 讨论(0)
  • 2020-12-12 16:41

    You can proceed as follow to configure the target platform:

    1. In Visual Studio, right click on the solutionSelect "Properties"
    2. A setting dialog will appear
    3. Click on configuration Settings: You will see all the projects of the solution and the configation of the compilation.
    4. Click on "Configuration Manager" button (top right of the dialog)
    5. You will see two dropdowns, click on the "Target Platform" one and then on "New" in order to add the the desired target platforms
    6. Once the desired target platforms added, choose the one that you want
    7. Click close then Ok
    0 讨论(0)
  • 2020-12-12 16:44

    In the configuration Manager, you can add a new platform for your project. However, you need to uncheck the "Create new solution platforms" if you already added the platform for your solution, otherwise you will indeed get the warning that the solution platform is already there.

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