Unable to install nuget packages

Completed

Hi,

I'm unable to install any nuget package under Rider rs-163.10479 on Ubuntu 16.04 64bits with dotnet core 1.1.0 installed. 

It's simple to reproduce the error. Just create a dotnet core console application from Rider and try to install any nuget package (automapper, newtonsoft.json, dapper.... or others). 

You'll get the following error below: 

"EXCEPTION: Error reading '' at line 0 column 0 : Unsupported type: SharedFramework
NuGet.ProjectModel.FileFormatException: Error reading '' at line 0 column 0 : Unsupported type: SharedFramework ---> System.Exception: Unsupported type: SharedFramework
at NuGet.LibraryModel.LibraryDependencyTypeKeyword.Parse (System.String keyword) [0x00027] in <4200fbb16ce74735b5cd32c5cb3689b5>:0
at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00064] in <3d28ff57dabe4810972168f613844528>:0
at NuGet.LibraryModel.LibraryDependencyType.Parse (System.Collections.Generic.IEnumerable`1[T] keywords) [0x0003a] in <4200fbb16ce74735b5cd32c5cb3689b5>:0
at NuGet.ProjectModel.JsonPackageSpecReader.PopulateDependencies (System.String packageSpecPath, System.Collections.Generic.IList`1[T] results, Newtonsoft.Json.Linq.JObject settings, System.String propertyName, System.Boolean isGacOrFrameworkReference) [0x000cd] in <9ac1d05ef10241d0a87ffb6a8f0de62c>:0
at NuGet.ProjectModel.JsonPackageSpecReader.BuildTargetFrameworkNode (NuGet.ProjectModel.PackageSpec packageSpec, System.Collections.Generic.KeyValuePair`2[TKey,TValue] targetFramework) [0x0007e] in <9ac1d05ef10241d0a87ffb6a8f0de62c>:0
at NuGet.ProjectModel.JsonPackageSpecReader.BuildTargetFrameworks (NuGet.ProjectModel.PackageSpec packageSpec, Newtonsoft.Json.Linq.JObject rawPackageSpec) [0x00024] in <9ac1d05ef10241d0a87ffb6a8f0de62c>:0
--- End of inner exception stack trace ---
at NuGet.ProjectModel.JsonPackageSpecReader.BuildTargetFrameworks (NuGet.ProjectModel.PackageSpec packageSpec, Newtonsoft.Json.Linq.JObject rawPackageSpec) [0x00040] in <9ac1d05ef10241d0a87ffb6a8f0de62c>:0
at NuGet.ProjectModel.JsonPackageSpecReader.GetPackageSpec (Newtonsoft.Json.Linq.JObject rawPackageSpec, System.String name, System.String packageSpecPath, System.String snapshotValue) [0x0026f] in <9ac1d05ef10241d0a87ffb6a8f0de62c>:0
at NuGet.ProjectModel.JsonPackageSpecReader.GetPackageSpec (Newtonsoft.Json.Linq.JObject json) [0x00000] in <9ac1d05ef10241d0a87ffb6a8f0de62c>:0
at NuGet.ProjectModel.PackageSpec.Clone () [0x0000d] in <9ac1d05ef10241d0a87ffb6a8f0de62c>:0
at NuGet.PackageManagement.NuGetPackageManager+<PreviewBuildIntegratedProjectActionsAsync>d__74.MoveNext () [0x00256] in <51abda8d9a32411b87b6a01dba394bb2>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <bd51fea693b94981b5992b58570ba692>:0
at NuGet.PackageManagement.NuGetPackageManager+<PreviewInstallPackageAsync>d__65.MoveNext () [0x00277] in <51abda8d9a32411b87b6a01dba394bb2>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <bd51fea693b94981b5992b58570ba692>:0
at NuGet.PackageManagement.NuGetPackageManager+<InstallPackageAsync>d__48.MoveNext () [0x00099] in <51abda8d9a32411b87b6a01dba394bb2>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <bd51fea693b94981b5992b58570ba692>:0
at NuGet.PackageManagement.NuGetPackageManager+<InstallPackageAsync>d__47.MoveNext () [0x000a6] in <51abda8d9a32411b87b6a01dba394bb2>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <bd51fea693b94981b5992b58570ba692>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <bd51fea693b94981b5992b58570ba692>:0
at JetBrains.ProjectModel.NuGet.NuGetHost+<InstallAsync>d__b.MoveNext () [0x00374] in <3ca1035bcfec4ba2a6d630303d8e245e>:0
ERROR: Notification [Install] Install failed (project: NovoConsole, package: Dapper v1.50.2)
Error reading '' at line 0 column 0 : Unsupported type: SharedFramework"

1
2 comments
Avatar
Permanently deleted user

The same issue here, Mac OS 10.12.1 .NET Core 1.1.0. Jetbrains aware of it: https://youtrack.jetbrains.com/issue/RIDER-3875

0
Avatar
Permanently deleted user

I am having the same issue. But just in case it helps anyone, you can still add the package to your project.json and run "dotnet restore" in terminal. 

0

Please sign in to leave a comment.