title: TFS and IIS - Source Control
body: <p>We're currently in the process of switching source-control from Subversion to TFS.     This works just fine for stand-alone projects/solutions that can be checked out, edited, compiled, and checked back in.</p>
  
  <p>I'm running into a bit of a head-ache trying to get it working smoothly with a particular project/solution set up we have.</p>
  
  <p>It's a solution that has a few C# projects, and an IIS/website/app.   The IIS website is mostly classic ASP with some C#/.NET pieces (we are slowly converting the pieces as we go).   This way, we test the website locally, and commit the changes to the repository.   It's no small website, it's a good 500+ files in total (images, ASP, ASPX, etc).</p>
  
  <p>Normally, in Subversion, we just check out the individual projects, and our solutions that contain it is <em>not</em> under source-control (considering some people have their local IIS instances mapped to different drives).    When we edit a file, it gets flagged as being modified, and we can check it in, revert our changes, etc (I use VisualSVN in VS2010 and it offers me all those handy options).</p>
  
  <p>With TFS, when I tried this same path (putting the website in source control, mapping it to the directory my IIS instance is pointing) - the project/solution loads just fine - but the solution explorer doesn't show any indication of being in source control - if I double-click a file and try editing it - it screams at me that it's in Read-Only mode.</p>
  
  <p>So - my question is simply - how do I get TFS to work smoothly with an IIS website in source control, so my solution explorer can show me what files I have locally are OK or are modified (ala Subversion)?   Without this "read-only" griping?</p>
  
  <p>I don't mind having to load the IIS portion of the solution as a "File/Folder" project (right now in our solution, the IIS piece is an IIS instance pointing to the IIS site on our machine).</p>
  
  <p>TLDR:   How the hell do I get TFS to source control an IIS website, giving me pretty icons in the solution explorer - without having to have the solution in TFS as well?</p>
  
  <p>It's IIS7, by the way.</p>