在内网搭建NugetServer服务时,初始化大量.nupkg文件时报“部件URI不能以两个正斜杠开头”。
处理方法:把packages下的文件夹都删除,然后重建,看卡在了那个包中,删之。
错误示例:
when i copied the latest version of bundlerminifier.core.2.8.391 to nuget.server 3.1.2 receiving same
error-part uri cannot start with two forward slashes.
https://github.com/madskristensen/BundlerMinifier/issues/309
另一种解决的方式:
使用winrar打开nupkg文件,编辑content_types.xml 改 partname="/prefercliruntime"
扫描二维码关注公众号,回复:
10635526 查看本文章