Unable to install nuget:Microsoft.DotNet.Interactive.SqlServer
See original GitHub issueDescribe the bug
I installed VS Code so I could learn how to set up .NET Interactive notebooks. I used the System Installer instead of the User Installer.
I installed dotnet-sdk-5.0.301-win-x64.exe as well as dotnet-runtime-5.0.7-win-x64.exe I installed these extensions in VS Code, if this helps with set up issues: NuGet Package Manager (1.1.6), .NET Interactive Notebooks (1.0.2351010), SQL Server (mssql) (1.10.1), Jupyter (2021.6.999662501)
When creating a .NET Notebook, as a jpynb file, I added a C# code cell and ran: #r “nuget:Microsoft.DotNet.Interactive.SqlServer,-”
I got the following error: Error: C:\Users\Deborah\AppData\Local\Temp\nuget\6260–159f7760-6286-4970-bea7-77ad5cb1ce35\Project.fsproj : error NU1100: Unable to resolve ‘Microsoft.DotNet.Interactive.SqlServer (>= 0.0.0-0)’ for ‘net5.0’. C:\Users\Deborah\AppData\Local\Temp\nuget\6260–159f7760-6286-4970-bea7-77ad5cb1ce35\Project.fsproj : error NU1100: Unable to resolve ‘Microsoft.DotNet.Interactive.SqlServer (>= 0.0.0-0)’ for ‘net5.0/win-x64’.
When researching and reaching out for general help with the problem, it sounded like there may be a config setting with nuGet and it was recommended that I open an issue.
Please complete the following:
Which version of .NET Interactive are you using? There are a few ways to find this out:
-
In a notebook, run the
#!about
magic command. (see below for screenshot) .NET Interactive © 2020 Microsoft Corporation Version: 1.0.233002+bb8147548dcdc9c83212e3b3631aa2e0148a0547 Build date: 2021-07-05T23:00:52.1339606Z https://github.com/dotnet/interactive -
At the command line, run
dotnet interactive --version
.
- OS
- [X ] Windows 10
- macOS
- Linux (Please specify distro)
- iOS
- Android
- Browser
- Chrome
- Edge
- Firefox
- Safari
- Frontend
- Jupyter Notebook
- Jupyter Lab
- nteract
- [X ] Visual Studio Code
- Visual Studio Code Insiders
- Other (please specify)
Screenshots
If applicable, add screenshots to help explain your problem.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Also, could you check the contents of your %AppData%\NuGet\Nuget.config file
This line should be in the file:
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
sometimes it is missing.Thanks
Kevin
Hi there -
Finally got around to this.
When I first ran the list source, here was my results: [image: image.png]
I then checked the file nuget.config file that Keven suggested and there was no PackageSources key. I added that line in and then re-ran the list source: [image: image.png]
I was then able to successfully run: #r “nuget: Microsoft.DotNet.Interactive.SqlServer, 1.0.0-beta.21357.1” Installed Packages
Query Microsoft SQL Server databases. Create strongly-typed dataframes using#!linqify. Inspect code compilation details using the #!inspect magic command. Explain things visually using the Mermaid language https://mermaid-js.github.io/mermaid/. Explore data visually using the nteract Data Explorer https://github.com/nteract/data-explorer. Use the #!record magic command to keep a transcript of the code you run. Explore data visually using the SandDance Explorer https://github.com/microsoft/SandDance. Query SQLite databases.
Loading extensions from Microsoft.DotNet.Interactive.SqlServer.dll
Loading extensions from Microsoft.DotNet.Interactive.ExtensionLab.dll
I then opened a brand new notebook and was able to follow the directions to connect and run a query against my database. I think I may be up and running!
Thank you both for your help with this!!! Deborah
On Thu, Aug 26, 2021 at 8:41 PM Kevin Ransom (msft) < @.***> wrote: