question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install nuget:Microsoft.DotNet.Interactive.SqlServer

See original GitHub issue

Describe 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. image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
KevinRansomcommented, Aug 27, 2021

Also, could you check the contents of your %AppData%\NuGet\Nuget.config file

type %AppData%\Nuget\Nuget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>

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

0reactions
DebtheDBAcommented, Sep 1, 2021

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

  • apache.arrow, 0.14.1
  • humanizer.core, 2.2.0
  • iced, 1.8.0
  • icsharpcode.decompiler, 7.0.0.6225-preview1
  • messagepack, 2.1.194
  • messagepack.annotations, 2.1.194
  • microsoft.aspnetcore.html.abstractions, 2.2.0
  • microsoft.bcl.asyncinterfaces, 5.0.0
  • microsoft.bcl.hashcode, 1.1.0
  • microsoft.codeanalysis.analyzerutilities, 3.3.0
  • microsoft.codeanalysis.common, 3.9.0
  • microsoft.codeanalysis.csharp, 3.9.0
  • microsoft.codeanalysis.csharp.features, 3.9.0
  • microsoft.codeanalysis.csharp.scripting, 3.9.0
  • microsoft.codeanalysis.csharp.workspaces, 3.9.0
  • microsoft.codeanalysis.features, 3.9.0
  • microsoft.codeanalysis.scripting.common, 3.9.0
  • microsoft.codeanalysis.visualbasic, 3.9.0
  • microsoft.codeanalysis.visualbasic.workspaces, 3.9.0
  • microsoft.codeanalysis.workspaces.common, 3.9.0
  • microsoft.data.analysis, 0.4.0
  • microsoft.data.sqlclient, 2.0.0
  • microsoft.data.sqlclient.sni.runtime, 2.0.0
  • microsoft.data.sqlite.core, 3.1.8
  • microsoft.diagnostics.runtime, 1.1.132302
  • microsoft.diasymreader, 1.3.0
  • microsoft.dotnet.interactive, 1.0.0-beta.21357.1
  • microsoft.dotnet.interactive.csharp, 1.0.0-beta.21357.1
  • microsoft.dotnet.interactive.extensionlab, 1.0.0-beta.21357.1
  • microsoft.dotnet.interactive.formatting, 1.0.0-beta.21357.1
  • microsoft.dotnet.interactive.packagemanagement, 1.0.0-beta.21357.1
  • Microsoft.DotNet.Interactive.SqlServer, 1.0.0-beta.21357.1
  • microsoft.entityframeworkcore, 3.1.8
  • microsoft.entityframeworkcore.abstractions, 3.1.8
  • microsoft.entityframeworkcore.relational, 3.1.8
  • microsoft.entityframeworkcore.sqlserver, 3.1.8
  • microsoft.extensions.caching.abstractions, 3.1.8
  • microsoft.extensions.caching.memory, 3.1.8
  • microsoft.extensions.configuration, 3.1.8
  • microsoft.extensions.configuration.abstractions, 3.1.8
  • microsoft.extensions.configuration.binder, 3.1.8
  • microsoft.extensions.dependencyinjection, 3.1.8
  • microsoft.extensions.dependencyinjection.abstractions, 3.1.8
  • microsoft.extensions.logging, 3.1.8
  • microsoft.extensions.logging.abstractions, 3.1.8
  • microsoft.extensions.options, 3.1.8
  • microsoft.extensions.primitives, 3.1.8
  • microsoft.identity.client, 4.14.0
  • microsoft.identitymodel.jsonwebtokens, 5.6.0
  • microsoft.identitymodel.logging, 5.6.0
  • microsoft.identitymodel.protocols, 5.6.0
  • microsoft.identitymodel.protocols.openidconnect, 5.6.0
  • microsoft.identitymodel.tokens, 5.6.0
  • microsoft.ml.dataview, 1.0.0
  • microsoft.visualstudio.threading, 16.7.56
  • microsoft.visualstudio.validation, 15.5.31
  • microsoft.win32.systemevents, 4.7.0
  • nerdbank.streams, 2.6.77
  • nuget.frameworks, 5.0.0
  • runtime.win-x64.native.microsoft.sqltoolsservice, 3.0.0-release.53
  • sqlitepclraw.bundle_e_sqlite3, 2.0.2
  • sqlitepclraw.core, 2.0.2
  • sqlitepclraw.lib.e_sqlite3, 2.0.2
  • sqlitepclraw.provider.dynamic_cdecl, 2.0.2
  • streamjsonrpc, 2.6.121
  • system.commandline, 2.0.0-beta1.21308.1
  • system.commandline.rendering, 0.3.0-alpha.20427.1
  • system.configuration.configurationmanager, 4.7.0
  • system.drawing.common, 4.7.0
  • system.identitymodel.tokens.jwt, 5.6.0
  • system.io.pipelines, 5.0.0
  • system.reactive, 5.0.0
  • system.runtime.caching, 4.7.0
  • system.security.cryptography.protecteddata, 4.7.0
  • system.security.permissions, 4.7.0
  • system.text.encodings.web, 5.0.1
  • system.text.json, 5.0.2
  • system.windows.extensions, 4.7.0

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:

Also, could you check the contents of your %AppData%\NuGet\Nuget.config file

type %AppData%\Nuget\Nuget.config

<?xml version="1.0" encoding="utf-8"?>

<configuration> <packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources> </configuration>

This line should be in this file: sometimes it is missing.

Thanks

Kevin

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dotnet/interactive/issues/1478#issuecomment-906836654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZP6F5PU6Y3DYW23PVPZ2DT63NNNANCNFSM5ABJCM6Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft.DotNet.Interactive.SqlServer 1.0.0-beta.23403.1
Version Downloads Last updated 1.0.0‑beta.23403.1 222 13 days ago 1.0.0‑beta.23313.2 474 2 months ago 1.0.0‑beta.23308.2 101 2 months ago
Read more >
.NET Interactive with SQL!| .NET Notebooks in Visual ...
SqlServer package. We can do this by adding a new C# (.NET Interactive) cell and running(Click on +Code to add a new cell):...
Read more >
Setting up .NET Interactive Notebooks - Deb the DBA
I get this: error NU1100: Unable to resolve 'Microsoft.DotNet.Interactive.SqlServer (>= 0.0.0-0)' for 'net5.0'. Any ideas? — Deborah ...
Read more >
My new super-IDE for MSSQL DBA tasks.
If it drops an error like this, it means you don't have Nuget source. error NU1100: Unable to resolve 'Microsoft.DotNet.Interactive.SqlServer (> ...
Read more >
Fix Not available in this source | NuGet Visual Studio Error ...
Trying to Install /Reinstall NuGet packages, but getting a "Not available in this source" message or error? Well, this video shows you all ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found