Newtonsoft.json.dll 正在构建服务器中复制

Newtonsoft.json.dll being copied in build server

我正在尝试构建一个未使用 Newtonsoft.Json.dll 的 WCF C# 项目。 我检查了 packages.config 和 *.csproj 文件。

在构建服务器中构建应用程序时,Newtonsoft.Json.dll 被复制到 bin 路径 构建日志: 将文件从 "d:\Microsoft Visual stdio 12.0\blend\newtonsoft.json.dll" 复制到“\\bin\newtonsoft.json.dll”

为什么会被复制?

正如上面所说的,您可能正在使用其他依赖于 Newtonsoft 的库。所以,只需检查您的项目。

这里供您参考:

When Microsoft.TeamFoundation.Build.Client.dll(or Microsoft.TeamFoundation.Build.Common.dll) referenced by the TFS plugin is set to CopyLocal(or Private), the builder will copy all its dependencies to the plugins folder, such as

  • Microsoft.TeamFoundation.Diff.dll
  • Microsoft.TeamFoundation.VersionControl.Client.dll
  • Microsoft.TeamFoundation.WorkItemTracking.Proxy.dll
  • Newtonsoft.Json.dll version 4.5.0

Source link : https://github.com/gitextensions/gitextensions/issues/3041