When I create a Class Library project my solution adds an "AnyCpu" platform. After adding a WPF project it adds a "x86" platform. Then when I create a Console project it finally creates a solution-wide "Mixed Platforms" platform. There are 2 problems:
How to avoid those problems?
You can specify all this configuration in a single MSBuild properties file and just import in each csproj
so you just neeed to change it in one place going further.
<!-- Add in the each csproj file -->
<Import Project="..\CommonProperties.properties" />
<!-- CommonProperties.properties file -->
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
</PropertyGroup>
</Project>