Yes, it should work. .NET 10 rc1 is even the version of compilers included by default. I just tried what you described but it works fine for me. Can you try in a fresh private window, perhaps there are some old files interfering?
05.10.2025 16:54 β π 1 π 0 π¬ 1 π 0
Fully revamped the tree view π³ in .NET Lab. Now with cursor syncing. Can display syntax, IOperation, and symbol info. #dotnet #csharp #roslyn #dotnetlab
05.10.2025 15:58 β π 16 π 3 π¬ 1 π 0
Reuse CSC arguments in file-based app runs by jjonescz Β· Pull Request #50635 Β· dotnet/sdk
Part of #48011.
This optimization saves CSC arguments when MSBuild runs and then reuses them in subsequent runs so dotnet run file.cs can skip MSBuild and invoke only the compiler.
In my simple exp...
Big improvements to the performance of developing C# file-based incoming. Subsequent builds/runs will cache MSBuild outputs & directly invoke the C# compiler if inputs don't change. This in addition to the work in rc.1 to avoid MSBuild completely for simple file-based apps
github.com/dotnet/sdk/p...
11.09.2025 17:58 β π 18 π 6 π¬ 0 π 0
Added a small but useful feature to copy the current URL in .NET Lab (lab.razor.fyi). It has a keyboard shortcut too: Ctrl+; π
#dotnet #csharp #roslyn #dotnetlab
06.09.2025 13:04 β π 2 π 0 π¬ 0 π 0
.NET Lab (lab.razor.fyi) just gained new configuration options inspired by `dotnet run app.cs`. Reference any NuGet packages via `#:package` or quickly change config via `#:property` (with editor suggestions to guide you). πβοΈ
26.07.2025 15:53 β π 2 π 0 π¬ 0 π 0
Check out all the improvements to file-based apps (dotnet run app.cs) in preview.6 that went out today!
github.com/dotnet/core/...
15.07.2025 17:53 β π 13 π 5 π¬ 2 π 0
Behind the scenes of dotnet run app.cs: Exploring the .NET 10 preview - Part 2
In this post I looks at how the new single-file .NET run experience is implemented inside the .NET SDK, focusing on how the virtual-project file is built
Blogged: Behind the scenes of dotnet run app.cs - Exploring the .NET 10 preview - Part 2
andrewlock.net/exploring-do...
In this post I looks at how the new single-file .NET run experience is implemented inside the .NET SDK, focusing on how the virtual-project file is built.
#dotnet #csharp
08.07.2025 17:47 β π 6 π 3 π¬ 0 π 0
.NET Lab (lab.razor.fyi) now has Code Actions π Very useful when you paste some code snippet and want to add missing usings. But it can do much more - all Roslyn code fixes are included.
28.06.2025 10:22 β π 12 π 6 π¬ 0 π 0
Added semantic highlighting to .NET Lab (lab.razor.fyi)
22.06.2025 13:04 β π 4 π 1 π¬ 0 π 0
Yes, should be in .NET 10 Preview 6
15.06.2025 11:50 β π 4 π 1 π¬ 1 π 0
Completions and live diagnostics are now much improved and enabled by default in .NET Lab (lab.razor.fyi). Stay tuned for more enhancements to the editing experience coming soon.
16.05.2025 07:05 β π 2 π 1 π¬ 0 π 0
Shared lab.razor.fyi snippets are now cached, so you can see the output even before the compiler is initialized. (Nevertheless, more optimizations of loading times are coming.) Example: lab.razor.fyi#47Lm4gooyk8v...
02.03.2025 09:47 β π 0 π 0 π¬ 0 π 0
Added this cool loading animation to lab.razor.fyi. Suddenly the loading feels faster β‘
21.02.2025 17:34 β π 6 π 3 π¬ 0 π 0
Old version using Bootstrap
20.12.2024 17:33 β π 0 π 0 π¬ 0 π 0
Updated lab.razor.fyi to use Microsoft Fluent UI. Quite happy with the result. Also got dark mode for free.
20.12.2024 17:33 β π 5 π 1 π¬ 1 π 0
About me: https://www.tabsoverspaces.com/about
Principal Software Engineer ASP.NET. Author of Newtonsoft.Json.
Product Manager at Microsoft on the .NET team for ASP.NET Core & Blazor.
Fluent UI Blazor library maintainer. Opinions are my own.
That last name is pronounced like either the first or the last part of 'bye bye'. The domain name is a play on the spelling of 'byte'
Microsoft MVP and blogger, focused on ASP.βNET Core. Author of ASP.βNET Core in Action (https://mng.bz/5mRz)
Blog: https://andrewlock.net
Mastadon: @andrewlock@hachyderm.io
Twitter: @andrewlocknet
Microsoft MVP, Software engineer, blogger
https://www.meziantou.net/
Distinguished Engineer @ Microsoft π§. Creator of NuGet, SignalR and ASP.NET Core, Barbadian π§π§, Tennis Player.
PM Architect on .NET at Microsoft
β€οΈ craft πΊ malt π₯ good β fine β F1 ποΈ
πΊ https://live.damianedwards.com
If youβve heard of me itβs probably because I maintain MSBuild.
#NuGet is the package manager for .NET.
Packages: http://NuGet.org
Docs: http://docs.microsoft.com/nuget
GitHub: http://github.com/nuget/home
Free. Cross-platform. Open source. A developer platform for building all your apps. Run by the .NET Community team at Microsoft.
(Unofficial) VP of Developer Productivity at Microsoft. Developer tools, engineering systems, .NET, C#, Roslyn, Visual Studio, Editor, WPF, Avalonia, MSBuild.
I help building the .NET runtime at Microsoft. My tweets are my own opinions and/or shitposts, not the official party line.
Aussie. Dev at Microsoft working on Razor and a bit of Roslyn (C# and VB). Just generally a big fan of syntax trees I guess. I like Lego. He/him. π¦πΊ
C# compiler lead and all around paranoid coder