我可以删除或移动文件夹 NuGetFallbackFolder 吗? [英] Could I remove or move the folder NuGetFallbackFolder?

查看:73
本文介绍了我可以删除或移动文件夹 NuGetFallbackFolder 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以删除文件夹 C:Program FilesdotnetsdkNuGetFallbackFolder 或将其移动到其他文件夹吗?(最好不在 C 盘中)

Could I remove the folder C:Program FilesdotnetsdkNuGetFallbackFolder or move it to other folder? (better not in disk C)

如果可以去除,如何去除?直接删除文件夹?有什么副作用或损害吗?

If could remove, how to remove? delete the folder directly? any side effects or damages?

如果能动,怎么动?像 D:NuGetFallbackFolder 这样的目标文件夹?我该怎么做?

If could move, how to move? target folder like D:NuGetFallbackFolder? How can I do it?

推荐答案

此文件夹包含一组 SDK 希望使用的 Nuget 包.每当 dotnet 尝试解析 nuget 包时,它都会用作 nuget 源.删除通常类似于删除您的 nuget 缓存:.NET Core 将根本找不到包并将它们下载到(正常的、非 NuGetFallbackFolder)本地 nuget 缓存中.

This folder contains a set of Nuget packages that the SDK expects to use. It's used as a nuget source whenever dotnet is trying to resolve nuget packages. Removing is generally similar to removing your nuget cache: .NET Core will simply not find the packages and download them into the (normal, non-NuGetFallbackFolder) local nuget cache.

.NET Core 的某些发行版不包含 NuGetFallbackFolder.唯一的结果是 dotnet 会在需要时立即下载所有这些包(可能在第一个 SDK 命令上).

Some distributions of .NET Core do not contain the NuGetFallbackFolder. The only consequence is that dotnet will download all those packages as soon as it needs them (possibly on the first SDK command).

如果你移动它,.NET Core 不会知道新的位置,只是把它当作你已经删除了目录.在 Linux 上,我会使用符号链接从旧位置指向新位置.我不知道 Windows 是否支持.

If you move it around, .NET Core won't know about the new location and just treat it as if you had deleted the directory. On Linux, I would use a symlink to point from the old location to the new one. I don't know if Windows supports that.

这篇关于我可以删除或移动文件夹 NuGetFallbackFolder 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆