Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Roslyn Generated ExplorerNew to Visual Studio Code? Get it now.
Roslyn Generated Explorer

Roslyn Generated Explorer

Axvser

| (0) | Free
Browse Roslyn source-generator output across solutions, projects and target frameworks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Roslyn Generated Explorer

Roslyn Generated Explorer

Every Roslyn source-generator output in VS Code — without a build.

GitHub VS Code

Source generators run inside the compiler, so their output never reaches the Explorer. This extension asks the compiler directly and shows every generated file beside the solution, project and target framework that owns it.

What you get

  • Every generated source across solutions, projects and TFMs — no EmitCompilerGeneratedFiles, no rebuild.
  • Real C# files. Open one and the C# extension provides semantic colors, CodeLens references and navigation, just like any other .cs.
  • A tree that mirrors your code: solution → project → TFM → analyzers / generated files.
  • Fast after the first look: per-TFM snapshots are cached and refreshed in the background.
  • Live updates: saving a source file regenerates the affected tree in place; adding or removing a generated file reloads the design-time project automatically.
  • Watched inputs: AdditionalFiles are watched too, including files outside the project directory.
YourSolution.slnx
└─ src
   └─ YourProject
      ├─ net8.0
      │  ├─ Analyzers (11)
      │  └─ Generated (29)
      │     └─ Your.Generator
      │        ├─ Commands
      │        └─ ViewModels
      └─ net10.0

Single-TFM projects skip the TFM level and show Analyzers / Generated directly.

Install

  1. Download the latest VSIX from Releases.
  2. In VS Code: Extensions → … → Install from VSIX…, then Developer: Reload Window.
  3. Open a workspace containing a .sln, .slnx or .csproj.

Requires VS Code 1.49+ (the minimum API surface was verified against @types/vscode@1.49), the .NET 10 runtime for the bundled sidecar, the C# extension or C# Dev Kit for the semantic view, and a trusted workspace — the sidecar runs MSBuild over your projects.

Use

Open Roslyn Generated Explorer in the Explorer sidebar and expand a solution, a project and — when the project has several — a target framework.

  • Roslyn Generated Explorer: Show Generated Files focuses the project of the active editor.
  • Right-click a .csproj to target that project directly.
  • Click a generated file to open it; the project node's inline buttons reload or unload it.
{
  "roslynGeneratedExplorer.autoRefresh": true,
  "roslynGeneratedExplorer.solutionWorkspace": true,
  "roslynGeneratedExplorer.csharpSemantics": true
}

How it works

A small C# sidecar opens your solution with MSBuildWorkspace and calls GetSourceGeneratedDocumentsAsync(). For the semantic view it writes the selected TFM's files to a hidden obj/roslyn-generated folder inside the project, adds user-level files.exclude and explorer.autoRevealExclude entries so the folder stays hidden and is never auto-revealed, and adds a temporary obj/<Project>.csproj.roslyn-explorer.targets that applies only to the C# project system's design-time builds: its root property points at that folder, the files join Compile, and the analyzers are removed for that pass, so there is no duplicate generated copy. The folder has its own .gitignore. The sidecar loads analyzer copies from a temporary shadow directory, so rebuilding a generator is not blocked by the plugin. The sidecar's own evaluation opts out, so reloads keep seeing the real analyzers. The targets file is removed when the extension deactivates. Snapshots are stored in workspace storage; pre-existing EmitCompilerGeneratedFiles output is used as a cold-start fallback.

Settings

Setting Default
roslynGeneratedExplorer.sidecarPath empty Override; empty uses the bundled sidecar.
roslynGeneratedExplorer.dotnetPath dotnet Runtime used by the sidecar.
roslynGeneratedExplorer.configuration Debug MSBuild configuration.
roslynGeneratedExplorer.autoRefresh true Regenerate on source changes.
roslynGeneratedExplorer.autoLoadActiveProject true Load the active project.
roslynGeneratedExplorer.refreshDebounceMs 350 Automatic refresh debounce.
roslynGeneratedExplorer.maxBufferMB 256 Largest sidecar response.
roslynGeneratedExplorer.requestTimeoutMs 120000 Sidecar request timeout.
roslynGeneratedExplorer.maxLoadedProjects 4 Live sidecars before LRU eviction.
roslynGeneratedExplorer.maxDepth 16 Solution/project search depth.
roslynGeneratedExplorer.otherSolutions false Show non-primary solutions as roots.
roslynGeneratedExplorer.showUnlistedProjects false Show projects outside solutions.
roslynGeneratedExplorer.preload visible none, visible or all.
roslynGeneratedExplorer.preloadConcurrency 2 Projects preloaded at once.
roslynGeneratedExplorer.cache true Persist per-TFM snapshots.
roslynGeneratedExplorer.cacheMaxMB 256 Snapshot cache size.
roslynGeneratedExplorer.solutionWorkspace true Share one solution workspace.
roslynGeneratedExplorer.csharpSemantics true Add files to the design-time compilation.

Limitations

  • A source-generator assembly must have been built once, like any analyzer; the consuming project itself does not need a build or EmitCompilerGeneratedFiles.
  • Generated sources live in <Project>/obj/roslyn-generated with its own .gitignore; the extension adds user-level files.exclude and explorer.autoRevealExclude entries for it, so it stays hidden and is never auto-revealed.
  • The semantic view atomically re-writes the project file with identical bytes when the design-time view needs a reload; its content never changes and normal builds are unaffected.
  • Adding or removing a generated file triggers one design-time reload; content-only changes do not.
  • The first open of a project's generated files waits for that design-time reload so the file is associated with the C# project.
  • A project-file change reloads the shared solution (roughly one first-open).
  • The bundled sidecar is framework-dependent and needs the .NET 10 runtime.

Development

npm install
npm run compile
dotnet publish sidecar/RoslynGeneratedExplorer.Sidecar/RoslynGeneratedExplorer.Sidecar.csproj -c Release -o sidecar-dist

Press F5 to launch the extension host. Pushing a version change to main runs .github/workflows/release.yml, which builds the sidecar, packages the VSIX with it and creates a v<version> GitHub Release.

Repository

https://github.com/Axvser/Roslyn-Generated-Explorer

The product mark is original. Project, solution and target-framework icons use the C# Dev Kit assets; C# is a Microsoft trademark.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft