dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.89k stars 385 forks source link

#r loads the oldest NuGet from the feed #46

Closed tparviainen closed 4 years ago

tparviainen commented 4 years ago

Describe the bug

Jupyter Lab / C# kernel, preview build of dotnet-try 1.0.19558.8 loads the newest (below v5.0.0) NuGet from the feed when the version is not defined in the #r command: image

After upgrading to preview dotnet-try build 1.0.19558.9 the same #r command loads the oldest (below v1.0.0) NuGet package from the feed: image

Did this error occur while using dotnet try or online?

What kind of error was it?

Screenshots

If applicable, add screenshots to help explain your problem.

Please complete the following:

jonsequitur commented 4 years ago

Thanks for reporting this @tparviainen. As a workaround while we fix this, you can specify the version number:

#r "nuget:ClashOfClans,5.0.0"
tparviainen commented 4 years ago

Thanks @jonsequitur, I have been using next command as a workaround for this issue (it always loads the latest version and I do not need to know the exact version number of the latest NuGet package):

#r "nuget: ClashOfClans, *"

The output from the previous command is: image