添加 Nuget 包时,添加的内容位于何处?

When a Nuget package is added, where are the stuff added located?

在 Visual Studio 2019 年我添加了一个 Nuget 包,Microsoft.AspNetCore.Authentication.Google 版本 3.14。我能找到的唯一可见变化是 .csproj 文件中 <ItemGroup> 的额外一行。

包的代码在哪里?

如果我的项目签入 TFS,版本控制会受到怎样的影响?

这些包在您的构建文件夹中,即。 bin/debugbin/release

NuGet 包通常从源代码控制存储库中省略,并在构建之前与项目依赖项一起恢复。

Omitting NuGet packages in source control systems

Nugets 保存在 :

  • {project-root}\bin\{debug-release}\{target-framework}
  • {project-root}\obj\{debug-release}\{target-framework}

此外,所有 nugets 都在以下文件夹中兑现以备将来使用:

  • %UserProfile%/.nuget/packages