To work on the Cesium solution, install the latest .NET SDK (currently .NET 10).
To execute integration tests on Windows, the following components must be installed via Visual Studio Installer (either as individual components or as part of the Desktop development with C++ workload):
- VC++ compiler (MSVC Build Tools for x64/x86, latest version)
- Windows 10 SDK (Windows 11 SDK also works)
To build the compiler executable, run the following shell command:
$ dotnet buildTo run the compiler from sources directly, execute the following shell command:
$ dotnet run --project Cesium.Compiler -- [compiler arguments go here]Read more about the compiler arguments in the README document.
Want to add new tests to Cesium? Read a separate document on tests.
There are two kinds of tests in Cesium: unit tests and integration tests.
Run the unit and integration tests using this shell command:
$ dotnet restore
$ dotnet nuke TestAllIf you want to test changes in Cesium.Templates locally, you can install the templates directly from the Cesium folder.
$ cd <PATH_TO_CESIUM>/Cesium
$ dotnet new install Cesium.TemplatesThis installs the templates locally and lets you use template changes without going through the NuGet cache.
To produce a standalone compiler executable, run the following shell command:
$ dotnet nuke PackAllCompilerRuntimeSpecificBundles --configuration releaseThis will prepare runtime-specific ZIP archives in the artifacts/package/release folder.
If the automation asks you to update the file encoding (line endings or UTF-8 BOM) in certain files, run the following PowerShell script (PowerShell Core is recommended to run this script):
$ pwsh -File scripts/Test-Encoding.ps1 -AutoFixThe -AutoFix switch will automatically fix the encoding issues, and you'll only need to commit and push the changes.
If the CI asks you to update the file licenses, follow one of these:
- Update the headers manually (look at the existing files), something like this:
(accommodate to the file's comment style if required).
// SPDX-FileCopyrightText: %year% %your name% <%your contact info, e.g. email%> // // SPDX-License-Identifier: MIT - Alternately, use REUSE tool:
$ reuse annotate --license MIT --copyright '%your name% <%your contact info, e.g. email%>' %file names to annotate%
(Feel free to attribute the changes to "Cesium contributors https://github.com/ForNeVeR/Cesium" instead of your name in a multi-author file, or if you don't want your name to be mentioned in the project's source: this doesn't mean you'll lose the copyright.)
If you want just look around and ask questions, please join our Discord channel