title: Visual Studio: different project folder structure for publishing/editing than the physical one
body: <p>I'd like to add files to a web csproj that are located under its directory, but in a different directory structure than the physical one. Example physical directory structure:</p>
  
  <ul>
  <li>MyProject.csproj
  <ul>
  <li>Assets
  <ul>
  <li>Settings.config</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>Now my project needs the following structure when I publish the project (i.e. on the server when deployed) and would be nice if this structure would be visible from Visual Studio too:</p>
  
  <ul>
  <li>MyProject.csproj
  <ul>
  <li>Config
  <ul>
  <li>Settings.config</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>Notice that Settings.config isn't in the Assets but in the Config folder.</p>
  
  <p>I don't want to copy the files over, I can't move them and I can't change where these files are loaded from.</p>
  
  <p>Is it possible for such files to be located in the Assets folder while</p>
  
  <ul>
  <li>from VS they appear to be in the Config folder,</li>
  <li>and when the project is published they are copied to the Config folder.</li>
  </ul>
  
  <p>The latter one is possible with post-build tasks I think and I believe I can implement it. However I'd like to have the whole development experience, including the folder structure in VS, to show the file being under Config. Is this possible?</p>
  
  <p>I'm looking for something like solution folders, but for projects. Adding files as links would work great, but since the files are in the physical folder of the project I get the error "Cannot add a link to a file that is inside the project tree".</p>