Lex
Lex

Reputation: 7194

TFS204018 error when installing NuGet Package in VS2015

Whenever I install a NuGet package in a TFS source-controlled VS 2015 project, I get a message similar to the following output under "Source Control - Team Foundation":

TF204018: Could not check the file's encoding because the file C:\TFS\Oz.Interfaces\Main\Source\MVRSTamperCodes\MVRSTamperCodes.Web\web.config is in use.

I've been searching fruitlessly to see if there's a way to fix this issue and haven't found anything yet. Does anyone know what is causing this message and/or what steps I can take to fix it? I should note that this doesn't prevent the successful installation of the NuGet package so it appears to just be a warning or informational message.

Upvotes: 7

Views: 2128

Answers (2)

Greg Quinn
Greg Quinn

Reputation: 2178

If you're using Team Foundation Server, you will need to first check out the entire project, before updating Nuget Packages for the project, if you have this problem.

Upvotes: 0

Raf
Raf

Reputation: 570

I've met similar issue with blocking web.config and other files. My solution was:

  1. Uninstall NuGet Package Manager (Tools -> Extensions and Updates)
  2. Install newest version (currently: Nuget 3.2)

Upvotes: 16

Related Questions