title: Custom tool error: Failed to generate file
body: <p>I'm working on a windows application (<code>C#</code>) that was created in VS 2012 (<code>Framework 4.5</code>) windows forms. The requirements requires it to be used for older versions of windows so I'm setting the target framework to <code>.NET Framework 4</code>  and Platform target to <code>x86</code>.  Once its done and I try to compile I get the following error: </p>
  
  <blockquote>
    <p>Custom tool error: Failed to generate file: The service reference is not valid for the current .NET Framework version or project type. You can change the service reference configuration in the .svcmap</p>
  </blockquote>
  
  <p>I tried unchecking the box "<code>Reuse types in referenced assemblies</code>" in the Service References before flipping to framework 4 but no luck.</p>