Release Build Error Inside Visual Studio

Hello everbody,
I tried to build the solution inside Visual Studio 2019, because of the aot generation of odin serializer.
I get the following errors:
CS0103 C# The name “EditorResourceHelper” does not exist in the current context
CS0103 C# The name “Profiler” does not exist in the current context
The errors are all inside of Astar Pathfinding files.
What is a way to get rid of it?

Would you mind posting the full errors?