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.
// Generate 5 numbers and print them
var numbers = new List<int> { 10, 20, 30, 40, 50 };
foreach (var num in numbers)
{
Console.WriteLine($"Number: {num}");
}
Output screenshot :
Other observations:
I tried creating a new .dib notebook and couldn't recreate this.
In the notebook that is having this issue, I tried clearing cell outputs, restarting the kernel etc. but it still kept showing this error.
Curious what may have triggered this behavior in the first place.
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): Version: 1.0.632301+7d35ce3be7eb7a603527a3683b691d5e9922adca
Library version: 1.0.0-beta.25323.1+7d35ce3be7eb7a603527a3683b691d5e9922adca
OS
Windows 11
Windows 10
macOS
Linux (Please specify distro)
iOS
Android
Browser
Chrome
Edge
Firefox
Safari
Frontend
Jupyter Notebook
Jupyter Lab
nteract
Visual Studio Code
Visual Studio Code Insiders
Visual Studio
Other (please specify): .dib file polyglot notebook
Screenshots
If applicable, please add screenshots of the entire VS Code window.
Describe the bug
The foreach loop isn't functioning correctly.
Code:
Output screenshot :
Other observations:
I tried creating a new .dib notebook and couldn't recreate this.
In the notebook that is having this issue, I tried clearing cell outputs, restarting the kernel etc. but it still kept showing this error.
Curious what may have triggered this behavior in the first place.
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the
#!aboutmagic command. ): Version: 1.0.632301+7d35ce3be7eb7a603527a3683b691d5e9922adcaLibrary version: 1.0.0-beta.25323.1+7d35ce3be7eb7a603527a3683b691d5e9922adca
Screenshots
If applicable, please add screenshots of the entire VS Code window.