doc/articles/uno-builds-troubleshooting.md
uno-checkIf you're not sure whether your environment is correctly configured for Uno Platform development, running the uno-check command-line tool should be your first step. Find installation instructions and other details in the using uno-check guide.
Uno Platform projects use multi-targeting, for which each target framework has to be built individually, for some errors to disappear from the Error List window (notice the Project column values). In order to clear the Error List window, build the whole solution completely once. Subsequently, build a specific project and prefer the use of the Output tool window (in the menu View -> Output), taking build messages by order of appearance.
To troubleshoot build error, you can change the text output log level:
If you have trouble building your project, you can get additional information using binary log (binlog) files.
Important: Note that binlog files contain environment variables and csproj files used to build the sources, but not the source files themselves. Make sure to review the content of the file for sensitive information before posting it on a public issue, otherwise contact us on Discord for additional information to send us the build logs.**
To use MSBuild binary logs:
You may be asked to generate a binlog from the command line, as it includes more information (the project structure, but not the source files) that can help troubleshoot issues.
To generate a binlog file from the command line:
Open a :
Navigate to the folder of the project head
For WinUI/iOS/Android/macOS projects, type the following:
msbuild /r /bl MyProject.csproj
For other targets (.NET 5+, WebAssembly, Skia, etc...)
dotnet build /bl MyProject.csproj
Once the build has finished, a file named msbuild.binlog is generated next to the .csproj file.
You can also browse the common issues list for build errors and their resolutions.