Hello!
I am trying to deploy CI/CD on GitLab, but I am facing the following problem. Is there any method to solve this issue?
Library/PackageCache/com.cesium.unity@1.6.1/Runtime/Cesium3DTile.cs(2,7): error CS0246: The type or namespace name ‘Reinterop’ could not be found (are you missing a using directive or an assembly reference?)
If you’re trying to build Cesium for Unity from source (as opposed to using the built version we provide), you need to follow the developer setup instructions:
# Overview
This is a summary of the setup and workflows for developers who want to modify the Cesium for Unity plugin. If you just want to use Cesium for Unity in your own applications, see the main [README](../README.md).
## :computer: Building Cesium for Unity
### Prerequisites
* CMake v3.18 or later (the latest version is recommended)
* [.NET SDK v6.0 or later](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
* If you're using Visual Studio, you need Visual Studio 2022.
* Unity 2021.3+ (the latest version of the Unity 2021.3 LTS release is recommended)
* On Windows, support for long file paths must be enabled, or you are likely to see build errors. See [Maximum Path Length Limitation](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later).
* For best JPEG-decoding performance, you must have [nasm](https://www.nasm.us/) installed so that CMake can find it. Everything will work fine without it, just slower.
The built Cesium for Unity Assembly will run on much older versions of .NET, including the version of Mono included in Unity. However, these very recent versions are required for the C#<->C++ interop code generator (Reinterop).
To make sure things are set up correctly, open a command-prompt (PowerShell is a good choice on Windows) and run:
* `dotnet --version` and verify that it reports 6.0 or later
This file has been truncated. show original
You may also find it helpful to look at the steps executed by our own CI process:
name: Cesium for Unity
on: [push]
jobs:
QuickChecks:
name: "Quick Checks"
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install clang-format
run: pip install clang-format
- name: Check source formatting
run: |
find native~/Runtime native~/Editor native~/Shared \( -iname '*.cpp' -o -iname '*.h' \) -print0 | xargs -0 clang-format --dry-run -Werror
Windows:
needs: [QuickChecks]
runs-on: ["self-hosted","windows","x64","unity-2021-3"]
# Only allow a single Windows build at a time, for Unity licensing reasons
concurrency: windows
steps:
This file has been truncated. show original