title: TFS in visual studio 2012 Forcing a check-in
body: <p>This question is NOT answered at the link above...</p>
  
  <p>I had some problems with TFS where visual studio builds on the local machine no problem, but when I try to build on the server I get build errors. The errors are not relevant to this question.</p>
  
  <p>The issue I have is that in order to fix the errors I had to manually edit some of the files on my local machine, and since they were manually edited, TFS doesn't detect the change so it wont let me upload my change set to the server which would have fixed the problems there.</p>
  
  <p>My first, and main question is:
  How can I force TFS to copy all my local files to the server. Sort of like the reverse of the whole:</p>
  
  <p>Goto View / Other Windows / Source Control Explorer / Right click on the relevant project / Advanced / Get specific version / Check "Overwrite all files..." / Press ok.</p>
  
  <p>Which (arguably, cause it doesn't always get everything in my experience) gets a full file set from the server to the local machine.</p>
  
  <p>I am so tired of TFS uploading partial file sets and then when the solution is removed locally, and then re downloaded from the server, I have to pull in the missing files and references from some backup. If it was uploaded fully, and correctly at the start, I would probably have less of these problems. So this is my main question. How do I force TFS to upload all my files regardless if they have changed or not according to it.</p>
  
  <p>To explain further a problem I am having in particular with nuget package manager. I disabled the option "Allow NuGet to download missing packages during build". So locally I got actual build errors. Yes that's right, Build errors. like this...</p>
  
  <blockquote>
    <p>Project XXX: Package restore is disabled by default. To give consent,
    open the Visual Studio Options dialog, click on Package Manager node
    and check 'Allow NuGet to download missing packages during build.' You
    can also give consent by setting the environment variable
    'EnableNuGetPackageRestore' to 'true'.</p>
  </blockquote>
  
  <p>Which now forces me to re-enable this option to get rid of the errors. I am annoyed at this because such errors should be presented as warnings so as not to prevent a build. This is seriously disappointing and as a result I have a very poor opinion of NuGet.</p>
  
  <p>Anyways enough ranting, I re-enabled this, not like I had a choice. But the version where this was disabled went up to the server. Now I get this error on the server. I tried re-enabling it and doing a check in, but TFS wont let me. (Warning...No pending changes). Of course not, its just a silly check box. What could possibly have changed. But now I get an error on the server that I cannot fix all because someone at NuGet didn't put some taught into properly designing their warnings (as opposed to preventing a build by causing errors).</p>
  
  <p>So, once again, how can I force TFS to take all my files, changed or unchanged, verbatim, to the server. This way, when I fix a problem locally, it "should" fix it also on the server. Or at least, when I next download it, I am assured to have the whole file set.</p>
  
  <p>Apologies if this sounds like I am being negative, but I am at this for 5 solid days and it has completely stopped development costing me and the company a lot of money. Any help would be very much appreciated.</p>