Skip to content

Debugging the XAML compiler

Steven Kirk edited this page Jan 25, 2021 · 6 revisions

You can debug the XAML compiler by running Avalonia.Build.Tasks and passing parameters. For example, to run the XAML compiler on Sandbox the launchsettings.json file would look like:

{
  "profiles": {
    "Avalonia.Build.Tasks": {
      "commandName": "Executable",
      "executablePath": "$(SolutionDir)\\src\\Avalonia.Build.Tasks\\bin\\Debug\\netcoreapp3.1\\Avalonia.Build.Tasks.exe",
      "commandLineArgs": "$(SolutionDir)\\samples\\Sandbox\\bin\\Debug\\netcoreapp3.1\\Sandbox.dll .$(SolutionDir)samples\\Sandbox\\bin\\Debug\\netcoreapp3.1\\Sandbox.dll.refs $(SolutionDir)\\out.dll"
    }
  }
}
Clone this wiki locally