supportedFrameworks System.ArgumentOutOfRangeException

I've tried uninstalling/reinstalling LINQPad, clearing out any AppData folders I can find, installing the beta version, etc. but nothing works. Every time I try to install a package, even on a fresh installation of LINQPad, I get the same exception.
I'm sure I've accidentally goofed something up, but I'm not sure what or how I might fix it.
Comments
-
It's a corrupt PCL profile on your system:
http://forum.linqpad.net/discussion/1855/unable-to-add-any-nuget-fresh-installation#latest
The easiest solution is to install the latest LINQPad beta which detects and ignores corrupt PCL profiles:
https://www.linqpad.net/download.aspx#beta -
Thanks for the link! I ended up renaming the .NETPortable folder at `C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable`. I tried the LINQPad beta but that did not fix the problem for me, it persisted on v5.37.06 until I renamed that folder.
-
Yes, you're right - it didn't make the latest beta. I've just uploaded a new one that includes the fix.
-
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked method. Indexing an empty list will always throw an exception. Use a method like Add to append the item to the end of the list, or Insert to place the item in the middle of the list somewhere, etc. You cannot index into a list if that offset doesn't exist.
Typically, an ArgumentOutOfRangeException results from developer error. Instead of handling the exception in a try/catch block, you should eliminate the cause of the exception or, if the argument is returned by a method call or input by the user before being passed to the method that throws the exception, you should validate arguments before passing them to the method.