After Reinterop build,Unity compile error:

Assembly ‘Packages/com.cesium.unity/Reinterop.dll’ will not be loaded due to errors:
Unable to resolve reference ‘System.Collections.Immutable’. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.
Unable to resolve reference ‘Microsoft.CodeAnalysis.CSharp’. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

Not sure. We’re certainly not seeing that when building on our development or CI systems. What version of Unity are you using? Any unusual project settings? What platform?

I build cesium-unity follow this link:

Unity version 2022.3.3fc1,
Microsoft Visual Studio Community 2022 version17.6.5
All project settings are default settings

After I reopen the project,I got these errors:

Those are very strange errors, which makes it hard to guess what has gone wrong. For example, why is Microsoft.CodeAnalysis.dll in your Packages/com.cesium.unity directory at all? It’s not included in our github repo, so how did it get there?

Just to be sure, you are building from the GitHub repo, right? You can’t follow the developer instructions by starting with the shipped Cesium for Unity package.

I think it might be worth starting over with a clean directory and following the instructions very carefully. Record each step you take so that if you have trouble you can share your exact steps and we can take a look.

Can I ask why you need to build Cesium for Unity yourself anyway, rather than using the pre-built package?

Hi Kevin,
I’m having the same issue atm, I’m building Cesium myself after adding support for more than just the main camera

I think it might be worth trying to use a 2021.3 version of Unity to build the plugin, even if you plan to eventually use it in a newer version.