title: Checking a file out (TFS) for a pre-build action
body: <p>I've added a pre-build action for an ASP.NET web control (server control) project, that runs jsmin.exe on a set of Javascript files. These output files are part of the source control tree and are embedded into the assembly. </p>
  
  <p>The problem is when the pre-build runs, jsmin can't write the file as it's readonly. Is it possible to check the file out before hand? Or am I forced to set the file's attributes in the command line.</p>
  
  <p>Any improved solution to the problem is welcome.</p>
  
  <p><strong>Update</strong>
  One small issue with Mehmet's answer -you need to prepend the VS directory:</p>
  
  <pre><code>"$(DevEnvDir)tf" checkout /lock:none "$(ProjectDir)myfile" 
  </code></pre>