nuget - Package Manager in VS2015 RC fails on installing/restoring some packages -
i'm trying install nuget package - ngenerics.1.4.1 nuget.org (https://www.nuget.org/packages/ngenerics/) asp.net 5 project (website). package manager fails uriformatexception. after reference added reference folder in solution explorer yellow triangle ('warning').
error added error list: "dependency ngenerics >= 1.4.1.0 not resolved".
tried install local folder registry.
here's bug on msconnect.
i wonder whether experienced same issue couldn't find in google. workarounds welcome.
package manager's output:
installing nuget package ngenerics.1.4.1. installed 'ngenerics.1.4.1' samples.ajaxdemo2. ========== finished ========== restoring packages d:\work\apps\samples.ajaxdemo2\project.json ---------- system.uriformatexception: invalid uri: format of uri not determined. @ system.uri.createthis(string uri, boolean dontescape, urikind urikind) @ system.uri..ctor(string uristring) @ microsoft.framework.packagemanager.packagesourceutils.createpackagefeed(packagesource source, boolean nocache, boolean ignorefailedsources, reports reports) @ microsoft.framework.packagemanager.restorecommand.addremoteprovidersfromsources(list`1 remoteproviders, list`1 effectivesources) @ microsoft.framework.packagemanager.restorecommand.<restoreforproject>d__74.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.framework.packagemanager.restorecommand.<>c__displayclass73_0.<<executecommand>b__0>d.movenext() --- end of stack trace previous location exception thrown --- @ system.runtime.compilerservices.taskawaiter.throwfornonsuccess(task task) @ system.runtime.compilerservices.taskawaiter.handlenonsuccessanddebuggernotification(task task) @ microsoft.framework.packagemanager.restorecommand.<executecommand>d__73.movenext() ---------- restore failed invalid uri: format of uri not determined.
i stumbled across same issue today nuget 2.8.5 on visual studio 2013. @shrike's answer helped me find out it's specification of relative path in custom nuget.config. since appears system.uri
must able parse it, have ensure relative path proper, legal uri. relative file uris must start './' (obv don't use backslashes either, they're windows thing!). see c# type handle relative , absolute uri's , local file paths
e.g. use:
<add key="local-feed" value="./lib/nuget-feed" />
instead of:
<add key="local-feed" value="lib/nuget-feed" />
removing local feed not idea, have restore different feed, may not want (personally, wouldn't bet builds on nuget gallery given it's track record of downtime...)
Comments
Post a Comment