gpt4 book ai didi

visual-studio-2017 - 启用 PackageReference 时 Nuget 在哪里下载包

转载 作者:行者123 更新时间:2023-12-04 13:56:48 26 4
gpt4 key购买 nike

在 Visual Studio 2017 中,我启用了 PackageReference这样包引用将存储在 csproj 文件而不是 package.config 文件中

我在 csproj 文件中添加了这两行以启用 PackageRefernce

<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

现在,当我使用 Nuget 包管理器安装任何包时,我会看到类似这样的内容

enter image description here

带有蓝色图标的引用作为包添加。

但是我在 packages 中没有看到任何这些包解决方案目录下的文件夹。此外,如果我右键单击蓝色图标(即引用)并单击属性,则窗口为空白。我看不到它引用的路径

那么Visual Studio什么时候打包时下载包呢?引用已启用

最佳答案

看起来它安装在 C:\Users\{username}\.nuget\packages 中的软件包

当启用包引用时

关于visual-studio-2017 - 启用 PackageReference 时 Nuget 在哪里下载包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48755049/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com