Visual studio - can't remove project configurations

前端 未结 8 874
Happy的楠姐
Happy的楠姐 2020-12-29 01:36


I have a major problem with project configurations. Everything started when I wanted to add new solution configuration (named \"Dev_WithSource\") based on existing \"De

相关标签:
8条回答
  • 2020-12-29 01:44

    I know this is an old thread, but this was the answer for me:

    In the Configuration Manager, select "Edit..." in the "Configuration" column for each project (not via the dropdown named Active solution configuration) that has configurations you want to remove.

    In the dialog that pops up, mark each unwanted configuration and select "Remove".

    Copied from How do I remove a project configuration in Visual Studio 2008?

    0 讨论(0)
  • 2020-12-29 01:47
    1. Access the configuration manager in one of two ways:

      1. From the menus on top: Build > Configuration Manager...
      2. From the drop down listing your configurations on the main tool bar select Configuration Manager...
    2. In the configuration manager dialog under Active solution configuration: choose <Edit...> from the drop down.

    3. A dialog opens showing all the configurations for your solution. Here you can select and click the Remove button.

    0 讨论(0)
  • 2020-12-29 01:47

    Let's suppose you want to remove "Release" configuration from the entire solution and the projects. So, first you go to Tools -> Nuget Package Manager -> Package Manager Console. From that console use the following command to remove the build from all the projects in the solution :

    Get-Project -All | Foreach { $_.ConfigurationMAnager.DeleteConfigurationRow("Release") }
    

    Then you remove it solution-wise as explained by Mike Grimm.

    0 讨论(0)
  • 2020-12-29 01:50

    You need to remove the configuration from the solution AND the project. From the Configuration Manager:

    1. Active solution configuration > Edit > Remove
    2. Project contexts > Configuration > Edit > Remove
    0 讨论(0)
  • 2020-12-29 01:53

    In Visual Studio for MAC -

    1. Double click your Solution > Configurations > General.
    2. Click on your 'ConfigToRemove' in the list then Remove (Ensure you tick delete also Configurations in Solution items), then Yes.
    3. Click OK to save your changes.
    4. Now, right Click on Solution and Tools > Edit File.
    5. Go to "GlobalSection(SolutionConfigurationPlatforms) = preSolution" and remove all the Configurations you no longer need otherwise they will still show up in Configuration Mappings even though there are no mappings in the project!
    6. Save and your done.
    0 讨论(0)
  • 2020-12-29 01:56
    1. Right-click->Unload your project with the configurations you want to remove.
    2. Right-click->Edit project file xml directly.
    3. Delete the Property groups containing conditions containing the name of the platforms/configurations you wish gone.
    4. Save and load project again. Unwanted configurations should be gone.
    5. If a configuration seems set up right but OutPutPath is still "not set", try moving its propertygroup tag up in the xml.
    0 讨论(0)
提交回复
热议问题