title: Change name of output dll based on configuration
body: <p>It seems like it should be simple enough, but basically I have two configurations for a class library. One is a normal .NET 4.0 configuration, the other is configured to register for COM Interop, and additionally defines a compilation symbol so I can work around some COM-related quirks with pre-processor directives.</p>
  
  <p>The issue is that when deployed, both of these DLLs must be in the same folder for the calling application to be able to use them (by design, can't do much about it). I've got everything working great when compiling each configuration to its respective <code>bin/</code> sub-folder, including signing both configs with different strong-name keys such that the GAC sees two different assemblies, even with the same name and version. </p>
  
  <p>But putting them in the same folder requires that one needs renamed, and that's where the problem lies.</p>
  
  <p>What would be <em>terrific</em> is if in Visual Studio I could conditionally set the Assembly Name property in the Application tab, but it looks like that tab is project-scoped, not config-scoped. Short of that, is there any way to specify a different file name such that won't cause run-time problems, not to mention developer sanity problems? My goal here is to be able to provide features to .NET clients that COM doesn't support, while still having compatibility with COM. I'd greatly prefer not to copy and paste everything into another project that just has a different Assembly Name...</p>