Debugging the XAML compiler
You can debug the XAML compiler adding at your's csproj AvaloniaXamlIlDebuggerLaunch property like this:
1
<PropertyGroup>
2
<OutputType>WinExe</OutputType>
3
<TargetFramework>net5.0</TargetFramework>
4
<Nullable>enable</Nullable>
5
<AvaloniaXamlIlDebuggerLaunch>true</AvaloniaXamlIlDebuggerLaunch>
6
</PropertyGroup>
Copied!
If build the project in Visual Studio you shold see a window like this:
on other IDEs, a message will appear in the build output window indicating the PID of the process to attach the debugger to and the elapsed time. If within one minute of starting the build no debugger is attacked to the process, a timeout message will be reported and the build will continue as normal.
Last modified 5d ago
Export as PDF
Copy link