简体   繁体   中英

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.

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 )

如果您正在使用Team Foundation Server,则在更新项目的Nuget包之前,如果遇到此问题,则需要先检查整个项目。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM