title: Visual Studio 2010 : Can't change target. Gives TargetFrameworkMoniker Error
body: <p>I have a console application which has target .NET 2.0</p>
  
  <p>It is very short but full of unsafe code.</p>
  
  <p>I converted it to VS 2010. I run it OK.</p>
  
  <p>When I try to change "target framework" in properties to 3.5 or 4.0 it shows message box:</p>
  
  <blockquote>
    <p>TargetFrameworkMoniker: Error parsing application configuration file at line 0. XML document must have a top level element.</p>
  </blockquote>
  
  <p>the target then stays 2.0 anyway.</p>