Skip to content

Commit 8cc312c

Browse files
committed
Update readme
1 parent 026db9f commit 8cc312c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,24 @@ Key topics:
111111
- [Performance](https://mediator.foundatio.dev/guide/performance.html) - Benchmarks vs other libraries
112112
- [Configuration](https://mediator.foundatio.dev/guide/configuration.html) - MSBuild and runtime options
113113

114+
## 🔍 Viewing Generated Code
115+
116+
For debugging purposes, you can inspect the source code generated by Foundatio Mediator. Add this to your `.csproj`:
117+
118+
```xml
119+
<PropertyGroup>
120+
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
121+
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>
122+
</PropertyGroup>
123+
124+
<ItemGroup>
125+
<Compile Remove="$(CompilerGeneratedFilesOutputPath)/**/*.cs" />
126+
<Content Include="$(CompilerGeneratedFilesOutputPath)/**/*.cs" />
127+
</ItemGroup>
128+
```
129+
130+
After building, check the `Generated` folder for handler wrappers, DI registrations, and interceptor code. See [Troubleshooting](https://mediator.foundatio.dev/guide/troubleshooting.html) for more details.
131+
114132
## 📦 CI Packages (Feedz)
115133

116134
Want the latest CI build before it hits NuGet? Add the Feedz source (read‑only public) and install the pre-release version:

0 commit comments

Comments
 (0)