vscode配置nuget常见问题
1、vscode不能使用nuget插件问题
问题:"Versioning information could not be retrieved from the NuGet package repository. Please try again later."
解决方式:
打开 /Users/用户名/.vscode/extensions/jmrog.vscode-nuget-package-manager-1.1.6/out/src/actions/add-methods/fetchPackageVersions.js
修改后的代码了toLowerCase()方法
...node_fetch_1.default(`${versionsUrl}${selectedPackageName.toLowerCase()}/index.json`, utils_1.getFetchOptions(vscode.workspace.getConfiguration('http')))
2、vscode安装nuget插件包
(1)快捷ctrl+shfit+p键弹出选择add package
(2) 输入nuget插件名
(3)选择版本号