File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,3 +36,14 @@ You can use the `DefineConstants` dotnet build or csproj parameter to define the
3636For the debugger attachment with JetBrains Rider to work correctly,
3737` Generate Shell Scripts ` needs to be enabled in the JetBrains ToolBox
3838and the generated shell scripts need to be on the path (Mapperly calls ` rider attach-to-process {pid} {Mapperly-Sln-File} ` ).
39+
40+ ## CSC warning CS8785 stack trace
41+
42+ If you see the compiler warning ` CS8785: Generator 'MapperlyGenerator' failed to generate source ` ,
43+ you can get a stack trace from the C# compiler by emitting a compiler error log. The stack trace is included in the SARIF output.
44+
45+ Add the following MSBuild property when you build:
46+
47+ - ` /p:ErrorLog=compiler-diagnostics.sarif `
48+
49+ Then open the SARIF file to inspect the generator exception and stack trace.
You can’t perform that action at this time.
0 commit comments