markjprice/cs10dotnet6

Chap1 - .NET Interactive: create notebooks

ivanalexo opened this issue · 6 comments

Hi there, I wanted to try running the interactive notebooks on VS Code but I receive an error saying:
imagen
I tried to install it by executing the command dotnet tool install --global Microsoft.dotnet-interactive but I got an error message saying that the package is incompatible with net 6.0.
I've the latest version of .net SDK and Visual Studio 2022
imagen

Did you first try to install .NET Interactive Notebooks using the Extensions section inside Visual Studio Code? That is the easiest way to install and extension for Visual Studio Code.

Second, you do not install Visual Studio Code extensions using the dotnet CLI.

You use commands like:

code --list-extensions
code --install-extension ms-dotnettools.dotnet-interactive-vscode
code --uninstall-extension ms-dotnettools.dotnet-interactive-vscode

More here: https://code.visualstudio.com/docs/editor/command-line#_working-with-extensions

Also, the name of the extension is ms-dotnettools.dotnet-interactive-vscode, as shown in this section of my book on page 8:

image

Hi Mark, I've installed the extension as was instructed on your book but it was not working, so then I tried using dotnet CLI
I've tried uninstalling it code --install-extension ms-dotnettools.dotnet-interactive-vscode and the install it again code --install-extension ms-dotnettools.dotnet-interactive-vscode but no effect the error still persist.

I've tried Googling but did not find anything helpful. Some people had not installed .NET SDK 6.0 but you already have. Is it just the Create new blank notebook command that gives an error? Can you open existing notebooks? Do you have another computer that you could try installing Visual Studio Code. .NET SDK 6.0, and the .NET Interactive Notebooks extension on?

Try downloading vsix from official .NET Interactive github repository and installing it via Extensions > Install from VSIX...