How do I prevent Visual Studio 2008 from automatically creating the "Mixed Platforms" and "Any CPU" solution configurations? We have "Win32" and "x64" configurations and a developer needs to choose between them. However, as soon as anyone makes any changes to the solution VS automatically creates "Mixed Platforms" and it seems to be the default configuration. This causes a lot of issues, because it turns out some new projects are not selected in this configuration or the wrong project configuration is selected, etc. I just want to stop it doing that and manage the solution configurations myself.
-
4We have same issue with VS 2010 Beta2 :( – Roman Jan 23 '10 at 17:02
-
3Still a problem in VS 2010 RTM – Nick Jul 01 '10 at 10:51
-
4The worst thing is, even if you settle on Mixed Platforms as your only platform, VS will STILL litter the platforms every time you add a new project. What a mess. – Roman Starkov Jan 30 '11 at 13:56
-
3Still a problem in VS 11 Beta – Matt Z Apr 13 '12 at 06:05
-
Ugh, this problem is still such an annoyance. Even popping up a dialog upon project creation asking "which platform?" would be preferable. – HiredMind Aug 23 '13 at 15:45
-
2still broken in VS2017 – ROX Apr 25 '18 at 13:31
-
1And in VS2019. VS keeps re-introducing configurations that have been removed. – huoneusto Feb 18 '20 at 11:49
-
1And in 2022. Yes, 14 years later, Microsoft still hasn't bothered to figure out or fix this bug! – Ian Kemp Jun 09 '22 at 16:29
3 Answers
We see a similar issue with Visual Studio 2005 projects that we want to build both for a Win32 configuration and for a number of distinct smart device platform/configuration combinations.
At arbitrary times, every configuration gets auto-generated for every platform, whether it's valid or not, exploding the size of each of our ~50 project files and causing a lot of work to fix the issue.
It consistently happens when we open the Configuration Manager dialog, and it sometimes (but not always) happens when changing a project setting for a configuration. In the latter case, it seems to be related to manipulating the platform and configuration drop-downs on the project setting dialog.
We filed it as a Visual Studio issue; MSFT closed it as "won't fix".

- 6,341
- 2
- 28
- 42
-
5Tim, do you have a link? They sometimes fix issues voted for by a lot of people. – Roman Starkov Jan 30 '11 at 13:55
-
1This is the issue we filed. Although we originally noted it as happening only when adding a new platform, we later found out that it happens arbitrarily: https://connect.microsoft.com/VisualStudio/feedback/details/165785/adding-win32-configuration-to-a-smart-device-project-results-in-unuseable-configuration – Tim Lesher Feb 10 '12 at 20:57
-
2The same here: http://connect.microsoft.com/VisualStudio/feedback/details/662801/prevent-visual-st – gregseth Sep 05 '12 at 09:28
-
11According to Microsoft we can all go .... ourselves. Thank you Microsoft for closing the issue. It's good they had time to put in those UPPERCASE MENUS IN VS 2012. – xxbbcc Oct 26 '12 at 20:25
-
2the bug has outlived the documentation. bug still exists, links are now dead. – ROX Apr 25 '18 at 13:34
I've been dealing with the same sort of problem. I agree it is a mess. I've seen two viable options for dealing with it - neither are really what you want.
- Manually remove the configurations that it creates by going to the configuration chooser and picking edit...
- By default (at least if I start with a fresh solution in VS 2010) and start creating new projects (both class libraries and apps), you end up with Any CPU, Mixed Platforms, and x86 for your Solution Platforms. Visual Studio seems to do a good job adding new class libraries to both Any CPU and Mixed Platforms (since they default build for the Any CPU target) and adding new apps to both Mixed Platforms and x86 (since the default build for the x86 target), and putting both new class libraries and new apps to Mixed Platforms. So Mixed Platforms ends up being a nice default since it builds everything. I'm not sure why it's not adding new projects for you to Mixed Platforms

- 2,557
- 2
- 23
- 36
-
2We do #1, but with 10+ devs, all with the right to add new projects and 81 projects, this is a hassle tbh. – Casper Leon Nielsen Apr 01 '13 at 13:23
-
Yeah, still the same issue with VS2013. I'm doing #1 too... when I don't forget it. But gosh how often I do forget it and end up struggling why the hell the solution doesn't compile. – Zoltán Tamási Feb 25 '16 at 15:00
You could filter your .sln files in a commit hook of your source control. So that if you check it in the .sln file and possibly the project files get fixed. The open source Chromium project has such a filter implemented.

- 2,700
- 1
- 25
- 34
-
2I suppose so, but that would be a huge hassle and probably quite unreliable. The risk of stuffing up the sln file wouldn't be worth the benefit. – EMP Aug 21 '09 at 01:26