Jan Jones's Avatar

Jan Jones

@janjones.me

C# (Roslyn) compiler dev at Microsoft https://github.com/jjonescz

76
Followers
21
Following
21
Posts
21.11.2023
Joined
Posts Following

Latest posts by Jan Jones @janjones.me

Post image

Bound trees (internal Roslyn representation of executable code) can now be displayed on .NET Lab. This includes ref safety escape scopes. Makes investigation of compiler bugs easier. #dotnet #csharp #roslyn #dotnetlab

28.02.2026 19:52 ๐Ÿ‘ 12 ๐Ÿ” 2 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

Yes, that should be possible with the desktop framework I'm currently using (Photino). Good to know there is demand for that, thanks, I will try looking into that soon.

23.12.2025 15:11 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Proper links can't be created in the official bluesky app afaik (but it can render them ๐Ÿคทโ€โ™‚๏ธ), so I'm using @deck.blue for that.

23.12.2025 07:10 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Screenshot of .NET Lab with disassembled machine code

Screenshot of .NET Lab with disassembled machine code

.NET Lab can now display disassembled machine code. It's taken directly from JIT, hence only supported on desktop for now. #dotnet #csharp #roslyn #asm #dotnetlab

22.12.2025 19:08 ๐Ÿ‘ 10 ๐Ÿ” 4 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Video thumbnail

Tired of waiting for the WebAssembly version of .NET Lab to load? There is now .NET Lab Desktop for Windows which is much faster thanks to running on full .NET: apps.microsoft.com/detail/9PCPM... โšก

17.12.2025 16:10 ๐Ÿ‘ 10 ๐Ÿ” 2 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Yes, pinning an exact version is what I meant. Although that wouldn't affect design time (IntelliSense), only builds.

16.12.2025 20:14 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

You can leave it unset (or set to empty). That makes it automatically determined from the TargetFramework.

If you set it to latest/preview (recommended eg if you multitarget), you should also pin the SDK version in global.json to ensure consistent value regardless of the actual SDK used to build.

16.12.2025 18:20 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0
Post image

Getting ready for our last .NET meetup Prague of the year. This time with a holiday vibe!

#dotnet

aka.ms/DotnetMeetup...

08.12.2025 13:23 ๐Ÿ‘ 2 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Great feature I've got a chance to work on in .NET 10

14.11.2025 21:31 ๐Ÿ‘ 5 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I believe debugging picks up arguments that you specify in launchSettings.json (or *.run.json - github.com/dotnet/sdk/i...)

13.11.2025 19:35 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

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 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Post image

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
Preview
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
Post image

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
Post image

.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
Preview
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
Video thumbnail

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

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
Preview
Add support for `dotnet file.cs` (without explicit `run` subcommand) by jjonescz ยท Pull Request #48387 ยท dotnet/sdk Resolves #49202.

And soon just
dotnet app.cs
๐Ÿ˜Ž

github.com/dotnet/sdk/p...

14.06.2025 05:32 ๐Ÿ‘ 25 ๐Ÿ” 8 ๐Ÿ’ฌ 4 ๐Ÿ“Œ 0
Video thumbnail

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
Post image

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
Video thumbnail

Added this cool loading animation to lab.razor.fyi. Suddenly the loading feels faster โšก

21.02.2025 17:34 ๐Ÿ‘ 6 ๐Ÿ” 3 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

Old version using Bootstrap

20.12.2024 17:33 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

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