Error: type `System.Reflection.Emit..... when Build a project

Hi, I’m trying to build my project (works fine for iOS and Mac) and get this error when build processing…

Error: type System.Reflection.Emit.ModuleBuilder doesn’t exist in target framework.

Error: type System.Reflection.Emit.ModuleBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.AssemblyBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.AssemblyBuilderAccess doesn’t exist in target framework.
Error: type System.Reflection.Emit.AssemblyBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.ModuleBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.ModuleBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.ConstructorBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.TypeBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.
Error: type System.Reflection.Emit.MethodBuilder doesn’t exist in target framework.

Does anybody know how to fix it?

Those classes are not available in .NET for Windows Phone - System.Reflection.Emit Namespace | Microsoft Learn

Thank you. I found out it causes Simple Waypoint System (HOTween scripts I guess).
I removed it and it works. Now I need to create a new waypoint system. :-/

Replied to this here.

Ok, thank you…