我是靠谱客的博主 顺心裙子,这篇文章主要介绍vscode Nuget Package Manager 提示 Versioning information could not be retrieved from the NuGet packagevscode解决nuget插件不能使用的问题错误提示原因解决,现在分享给大家,希望可以做个参考。
vscode解决nuget插件不能使用的问题
错误提示
使用vscode安装nuget插件之后出现错误:
"Versioning information could not be retrieved from the NuGet package repository. Please try again later."
原因
主要是nuget插件里的拉组件的js文件没有进行小写的控制
解决
打开路径下的文件fetchPackageVersions.js
/Users/用户名/.vscode/extensions/jmrog.vscode-nuget-package-manager-1.1.6/out/src/actions/add-methods/fetchPackageVersions.js
修改代码
...node_fetch_1.default(`${versionsUrl}${selectedPackageName}/index.json`, utils_1.getFetchOptions(vscode.workspace.getConfiguration('http')))
修改后的代码了toLowerCase()方法
...node_fetch_1.default(`${versionsUrl}${selectedPackageName.toLowerCase()}/index.json`, utils_1.getFetchOptions(vscode.workspace.getConfiguration('http')))
重启vscode问题解决!
最后
以上就是顺心裙子最近收集整理的关于vscode Nuget Package Manager 提示 Versioning information could not be retrieved from the NuGet packagevscode解决nuget插件不能使用的问题错误提示原因解决的全部内容,更多相关vscode内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复