You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
The official version of .NET 10 has been released, so please update it as soon as possible.
Reacted by Shengjie Yan, Annette Findley, skucher, DismissedLight, CarpentierChristopheDev, Lars, prime167, Orhan, Lee Englestone, Bart Czernicki and 8 more
After installing the .NET 10 SDK, the previous Polyglot Notebook execution reported an error.
Error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Text.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Microsoft.Extensions.AI.OpenAIChatClient.ToOpenAIOptions(ChatOptions options)
at Microsoft.Extensions.AI.OpenAIChatClient.GetResponseAsync(IEnumerable`1 messages, ChatOptions options, CancellationToken cancellationToken)
at Submission#7.<<Initialize>>d__0.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, StrongBox`1 exceptionHolderOpt, Func`2 catchExceptionOpt, CancellationToken cancellationToken)
Hello,
I am trying to learn .NET with C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals (10th edition).
Your project is mentioned in the book. I am trying to create a Notebook with the latest version of vscode and the latest version of .net (10), but without success.
Is there a specific configuration required to support .NET 10? Thanks
Error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. 系统找不到指定的文件。
File name: 'System.Text.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Submission#2.<>d__0.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Submission#2.()
at Submission#2.(Object[] submissionArray)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray1 precedingExecutors, Func2 currentExecutor, StrongBox1 exceptionHolderOpt, Func2 catchExceptionOpt, CancellationToken cancellationToken)
The key is not knowing how to roll back to. NET 9?
I'll add my name to the list of folks hoping for .NET 10 support very soon. I want to use this with packages that were new in .NET 10 so I don't have a fallback.
Reacted by bicijinlian
Reacted by Arafat Tehsin, Bart Czernicki and Kevin
When can this feature be released? I feel like the pace of this project has slowed down significantly! It has been quite a long time since the last release (almost half a year).
Reacted by Arafat Tehsin, Shengjie Yan, skucher, Chino Chang and aa89227
Public release is available in the preview channel(s). In VSCode just make sure you are using the preview channel and have .NET 10 SDK installed. The .NET 10 libraries should now work.
Reacted by Shengjie Yan, Arafat Tehsin, Mike Kistler and skucher
Public release is available in the preview channel(s). In VSCode just make sure you are using the preview channel and have .NET 10 SDK installed. The .NET 10 libraries should now work.
@bartczernicki , Unfortunately, the preview version is still not work. Below is the Polyglot Notebook: diagnostics.
Extension started for VS Code Stable.
tool-uninstall: Executing [dotnet tool uninstall Microsoft.dotnet-interactive] in 'c:\Users\shengjie\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode'.
tool-uninstall: Finished with code 0.
tool-uninstall: STDOUT:
Tool 'microsoft.dotnet-interactive' was successfully uninstalled and removed from manifest file c:\Users\shengjie\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode\.config\dotnet-tools.json.
tool-install: Executing [dotnet tool install --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json --ignore-failed-sources Microsoft.dotnet-interactive --version 1.0.661703] in 'c:\Users\shengjie\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode'.
tool-install: Finished with code 0.
tool-install: STDOUT:
You can invoke the tool from this directory using the following commands: 'dotnet tool run dotnet-interactive' or 'dotnet dotnet-interactive'.
Tool 'microsoft.dotnet-interactive' (version '1.0.661703') was successfully installed. Entry is added to the manifest file c:\Users\shengjie\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode\.config\dotnet-tools.json.
Started process 11100: dotnet tool run dotnet-interactive -- notebook-parser
Starting kernel for 'file:///e%3A/GitHub/Course/agent-course/dotnet/1.%20meai/01-meai-overview.ipynb' using: dotnet tool run dotnet-interactive -- [vscode] stdio --working-dir e:\GitHub\Course\agent-course\dotnet\1. meai
Kernel for 'file:///e%3A/GitHub/Course/agent-course/dotnet/1.%20meai/01-meai-overview.ipynb' started (8072).
kernel (8072) stderr: Unhandled exception: System.TypeInitializationException: The type initializer for 'Microsoft.DotNet.Interactive.PowerShell.PowerShellKernel' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=7.5.0.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'System.Management.Automation, Version=7.5.0.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at Microsoft.DotNet.Interactive.PowerShell.PowerShellKernel..cctor()
--- End of inner exception stack trace ---
at Microsoft.DotNet.Interactive.PowerShell.PowerShellKernel..ctor() in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive.PowerShell\PowerShellKernel.cs:line 83
at Microsoft.DotNet.Interactive.App.KernelBuilder.CreateKernel(String defaultKernelName, FrontendEnvironment frontendEnvironment, StartupOptions startupOptions, TelemetrySender telemetrySender) in D:\a\_work\1\s\src\dotnet-interactive\KernelBuilder.cs:line 54
at Microsoft.DotNet.Interactive.App.CommandLine.CommandLineParser.<>c__DisplayClass5_0.<<Create>b__15>d.MoveNext() in D:\a\_work\1\s\src\dotnet-interactive\CommandLine\CommandLineParser.cs:line 335
--- End of stack trace from previous location ---
at System.CommandLine.Invocation.InvocationPipeline.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
Kernel for 'file:///e%3A/GitHub/Course/agent-course/dotnet/1.%20meai/01-meai-overview.ipynb' ended (8072) with code 1.
Public release is available in the preview channel(s). In VSCode just make sure you are using the preview channel and have .NET 10 SDK installed. The .NET 10 libraries should now work.
@bartczernicki , Unfortunately, the preview version is still not work. Below is the Polyglot Notebook: diagnostics.
Extension started for VS Code Stable.
tool-uninstall: Executing [dotnet tool uninstall Microsoft.dotnet-interactive] in 'c:\Users\shengjie\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode'.
tool-uninstall: Finished with code 0.
tool-uninstall: STDOUT:
Tool 'microsoft.dotnet-interactive' was successfully uninstalled and removed from manifest file c:\Users\shengjie\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode\.config\dotnet-tools.json.
tool-install: Executing [dotnet tool install --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json --ignore-failed-sources Microsoft.dotnet-interactive --version 1.0.661703] in 'c:\Users\shengjie\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode'.
tool-install: Finished with code 0.
tool-install: STDOUT:
You can invoke the tool from this directory using the following commands: 'dotnet tool run dotnet-interactive' or 'dotnet dotnet-interactive'.
Tool 'microsoft.dotnet-interactive' (version '1.0.661703') was successfully installed. Entry is added to the manifest file c:\Users\shengjie\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode\.config\dotnet-tools.json.
Started process 11100: dotnet tool run dotnet-interactive -- notebook-parser
Starting kernel for 'file:///e%3A/GitHub/Course/agent-course/dotnet/1.%20meai/01-meai-overview.ipynb' using: dotnet tool run dotnet-interactive -- [vscode] stdio --working-dir e:\GitHub\Course\agent-course\dotnet\1. meai
Kernel for 'file:///e%3A/GitHub/Course/agent-course/dotnet/1.%20meai/01-meai-overview.ipynb' started (8072).
kernel (8072) stderr: Unhandled exception: System.TypeInitializationException: The type initializer for 'Microsoft.DotNet.Interactive.PowerShell.PowerShellKernel' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=7.5.0.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
File name: 'System.Management.Automation, Version=7.5.0.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at Microsoft.DotNet.Interactive.PowerShell.PowerShellKernel..cctor()
--- End of inner exception stack trace ---
at Microsoft.DotNet.Interactive.PowerShell.PowerShellKernel..ctor() in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive.PowerShell\PowerShellKernel.cs:line 83
at Microsoft.DotNet.Interactive.App.KernelBuilder.CreateKernel(String defaultKernelName, FrontendEnvironment frontendEnvironment, StartupOptions startupOptions, TelemetrySender telemetrySender) in D:\a\_work\1\s\src\dotnet-interactive\KernelBuilder.cs:line 54
at Microsoft.DotNet.Interactive.App.CommandLine.CommandLineParser.<>c__DisplayClass5_0.<<Create>b__15>d.MoveNext() in D:\a\_work\1\s\src\dotnet-interactive\CommandLine\CommandLineParser.cs:line 335
--- End of stack trace from previous location ---
at System.CommandLine.Invocation.InvocationPipeline.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
Kernel for 'file:///e%3A/GitHub/Course/agent-course/dotnet/1.%20meai/01-meai-overview.ipynb' ended (8072) with code 1.
Only the release versions are published to nuget.org.
@jonsequitur After installing the pre-release version, I created a blank ipynb/dib file, but it failed to run properly. Checking the diagnosis log, it shows the annoying exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=7.5.0.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified..
The "Could not load file" exception seems to occur in various versions, only with different assemblies each time. Before upgrading to the preview version, when using the MEAI.OpenAI package, it prompted that System.Text.Json, Version=10.0.0.0 could not be found. If you search for related issues, you’ll find many similar problems.
My computer runs on Windows 11, and I’m encountering the same error when using the latest VS Code Insiders to install the pre-release version of Polyglot Notebook.
I also tried it, and it was indeed running the. net version 10.01. Although I can only use. net 10.01, I don't know how to specify the. net version: for example, I want to use. net 9.I also tried it, and it was indeed running the. net version 10.01. Although I can only use. net 10.01, I don't know how to specify the. net version: for example, I want to use. net 9.
I cleared my local NuGet cache and that fixed the first problem. But now I'm getting a strange new error with System.Net.ServerSentEvents. It doesn't make sense.
And I asked a few others to test it, and they got the same error.
Unexpected discovery: The version of the Polyglot Notebooks plugin corresponds to the. NET version of the runtime being called.
Switch runtime. net version: Install (reinstall) the corresponding version of the Polyglot Notebooks plugin.
Although this method is not elegant.
Unexpected discovery: The version of the Polyglot Notebooks plugin corresponds to the. NET version of the runtime being called.
Switch runtime. net version: Install (reinstall) the corresponding version of the Polyglot Notebooks plugin.
Although this method is not elegant.
Activity
sheng-jie commentedon Nov 12, 2025
After installing the .NET 10 SDK, the previous Polyglot Notebook execution reported an error.
sheng-jie commentedon Nov 12, 2025
@jonsequitur Any plans for .NET 10 support? Thanks.
CarpentierChristopheDev commentedon Nov 13, 2025
Hello,
I am trying to learn .NET with C# 14 and .NET 10 – Modern Cross-Platform Development Fundamentals (10th edition).
Your project is mentioned in the book. I am trying to create a Notebook with the latest version of vscode and the latest version of .net (10), but without success.
Is there a specific configuration required to support .NET 10? Thanks
oyundev commentedon Nov 19, 2025
Unfortunately, dotnet interactive still requires .NET 9. Hopefully, it'll be updated to latest .NET version in (relatively) near future.
1 - Install the dotnet interactive from commandline: C:>dotnet tool install -g Microsoft.dotnet-interactive
2 - Install .NET 9 from here: https://dotnet.microsoft.com/en-us/download/dotnet/9.0
3 - Install
.NET Extension Packfrom Microsoft into Visual Studio Code here: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-packYou should be able to use C# in Jupyter Notebooks (and Polyglot .dib Notebooks) in VS Code.
bartczernicki commentedon Nov 22, 2025
Bump...pretty much can't use Interactive Notebooks without .NET 10 support.
CarpentierChristopheDev commentedon Nov 24, 2025
Hi oyundev, Thanks for your response.
I Hope you can upgrade your application in.NET 10 version without problems.
good dev.
bicijinlian commentedon Nov 27, 2025
Microsoft Agent Framework
Error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. 系统找不到指定的文件。
File name: 'System.Text.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Submission#2.<>d__0.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Submission#2.()
at Submission#2.(Object[] submissionArray)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray
1 precedingExecutors, Func2 currentExecutor, StrongBox1 exceptionHolderOpt, Func2 catchExceptionOpt, CancellationToken cancellationToken)The key is not knowing how to roll back to. NET 9?
sheng-jie commentedon Nov 27, 2025
Currently, you can bypass this issue by using a specific NuGet version.
arafattehsin commentedon Nov 29, 2025
If you're using some of the latest stuff, this workaround will not work. I think there's a dire need for the support of .NET 10
sheng-jie commentedon Dec 5, 2025
#4093
mikekistler commentedon Dec 8, 2025
I'll add my name to the list of folks hoping for .NET 10 support very soon. I want to use this with packages that were new in .NET 10 so I don't have a fallback.
bicijinlian commentedon Dec 13, 2025
这个功能什么时侯能发布?感觉这个项目的节奏明显慢了好多啊!离最后一次发布,已经相当长时间了(大半年了)。
When can this feature be released? I feel like the pace of this project has slowed down significantly! It has been quite a long time since the last release (almost half a year).
bartczernicki commentedon Dec 19, 2025
Public release is available in the preview channel(s). In VSCode just make sure you are using the preview channel and have .NET 10 SDK installed. The .NET 10 libraries should now work.
sheng-jie commentedon Dec 22, 2025
@bartczernicki , Unfortunately, the preview version is still not work. Below is the Polyglot Notebook: diagnostics.
bartczernicki commentedon Dec 23, 2025
The .NET Extensions, Identity, OpenAI worked for me so far, here is my package set up. If you can't run this notebook on your end, something is wrong with the environment:
https://github.com/bartczernicki/DecisionIntelligence.GenAI.Workshop/blob/main/Notebooks/2a%20-%20Workshop%20(Setup)%20-%20Code%20Execution%20Requirements.ipynb
4 remaining items
sheng-jie commentedon Dec 24, 2025
@jonsequitur After installing the pre-release version, I created a blank ipynb/dib file, but it failed to run properly. Checking the diagnosis log, it shows the annoying exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Management.Automation, Version=7.5.0.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified..The "Could not load file" exception seems to occur in various versions, only with different assemblies each time. Before upgrading to the preview version, when using the MEAI.OpenAI package, it prompted that System.Text.Json, Version=10.0.0.0 could not be found. If you search for related issues, you’ll find many similar problems.
My computer runs on Windows 11, and I’m encountering the same error when using the latest VS Code Insiders to install the pre-release version of Polyglot Notebook.
mikekistler commentedon Dec 24, 2025
I am also successfully running the prerelease extension with .NET 10 support, and it even works in a GitHub codespace. You can give it a try yourself:
https://github.com/mikekistler/AspNetCore.Notebook
The notebook is web-api/jsonpatch/jsonpatch.ipynb. The first cell loads a .NET 10 nuget pacakge and it works as expected.
sheng-jie commentedon Dec 24, 2025
Okay, I'll try again. Merry Christmas!
bicijinlian commentedon Dec 26, 2025
I also tried it, and it was indeed running the. net version 10.01. Although I can only use. net 10.01, I don't know how to specify the. net version: for example, I want to use. net 9.I also tried it, and it was indeed running the. net version 10.01. Although I can only use. net 10.01, I don't know how to specify the. net version: for example, I want to use. net 9.
我也试了,确实是运行了 .net 10.0.1 的版本。虽然,只能使用 .net 10.0.1,不知道怎么指定 .net 版本:比如想用 .net 9。
Hope the official version is released soon.
希望正式版,早日发布。
sheng-jie commentedon Dec 27, 2025
I cleared my local NuGet cache and that fixed the first problem. But now I'm getting a strange new error with
System.Net.ServerSentEvents. It doesn't make sense.And I asked a few others to test it, and they got the same error.
bicijinlian commentedon Dec 27, 2025
这应该是 VS Code Insiders 的 Bug,我还发现了其它多处都有Bug,特别是在 Plogylot Notebooks 里。
我在Visaul Studio 2022 -2026、 VS Code里试过,都没这种问题。 VS Code Insiders 里,报同样的错误。
按下葫芦浮起瓢,等正式版吧,虽然不知道啥时间发布。
sheng-jie commentedon Dec 27, 2025
😔, I'm so close to giving up, may be dotnet run file is a good options.
bicijinlian commentedon Dec 27, 2025
慢慢等待吧。这个项目的节凑,明显放慢了。
离上次发布已经快小一年啦,会放弃也说不定。
这种连环错误,能把人搞崩溃。先用着其它方案吧。
bicijinlian commentedon Jan 6, 2026
我发现把
VS Code的Polyglot Notebooks插件,“切换到预发布版本”。运行时,会使用 .net 10!I found that switching the
Polyglot Notebooksplugin inVS Codeto the preview version causes it to run with .NET 10!意外的发现:Polyglot Notebooks 插件的版本,对应该着调用的运行时的 .net 版本。
切换运行时 .net 版本:安装(重新安装)相应版本的 Polyglot Notebooks 插件 。
虽然这方法不优雅。
Unexpected discovery: The version of the Polyglot Notebooks plugin corresponds to the. NET version of the runtime being called.
Switch runtime. net version: Install (reinstall) the corresponding version of the Polyglot Notebooks plugin.
Although this method is not elegant.
bicijinlian commentedon Jan 6, 2026
可以改为:引用 System.Net.ServerSentEvents.dll 方式实现
sheng-jie commentedon Jan 6, 2026
The latest pre-release version already supports .NET 10.
skucher commentedon Jan 16, 2026
Could you please share the expected timeline for the production release of this item?
Adding @jonsequitur (not sure you are the one to ask)
oyundev commentedon Jan 21, 2026
Microsoft.dotnet-interactive v1.0.707101 with .NET 10 support is released to nuget.
jonsequitur commentedon Jan 21, 2026
The non-prerelease version of Polyglot Notebooks is now available with .NET 10 support.