My self-built v1.20 com.cesium.unity package is throwing an error

Hi Community Members!

I need some help :slight_smile:

My self-built v1.20 com.cesium.unity package is throwing an error when building to a windows target in the unity editor.

I think I am missing something with build step. (of course I read this document many time https://github.com/CesiumGS/cesium-unity/blob/main/Documentation\~/developer-setup.md )

reproduction step.

in windows 10 (with powershell)

$ENV:UNITY="C:\Program Files\Unity\Hub\Editor\6000.2.13f1\Editor\Unity.exe"
mkdir -p c:\cesium\CesiumForUnityBuildProject\Packages
cd c:\cesium\CesiumForUnityBuildProject\Packages
git clone --recurse-submodules git@github.com:CesiumGS/cesium-unity.git com.cesium.unity
cd com.cesium.unity
dotnet publish Reinterop~ -o .
dotnet run --project Build~ package --platform Editor
dotnet run --project Build~ package --platform Windows

after build com.cesium.unity package (com.cesium.unity-1.20.0.tgz)

I unzipped the tgz file to cesium-unity-samples repo with this location.
cesium-unity-samples\Packages\com.cesium.unity\

and then do build to windows target build

my dev enviroment

unity 6000.2.13f1
MSVC 19.44.35221
cmake version 4.2.0
dotnet-sdk-10.0.100-win-x64
dotnet-runtime-9.0.11-win-x64
nasm 3.01
Python.3.12
emscripten SDK 4.0.21
ninja 1.13.2

when I do build I got these message. I attached full log :slight_smile:

Packages\com.cesium.unity\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?)

...

log.zip (4.1 KB)

ah I figured this out.

I opened .github/workflows/build.yml and also I read reply comment of Kevin in this PR again. Add doc for targeting the supported platforms by kring 路 Pull Request #638 路 CesiumGS/cesium-unity 路 GitHub

I see I can build just like this. I finally understand build command :slight_smile: (my bad!)

dotnet run --project Build~ package --platform Editor --platform Windows --platform Web --platform Android