Error building Player because scripts had compiler errors

When i build my project based on kinect v2 in unity , to windows app store , this Error comes

Please read the documentation. WSA applications have only a subset of c# classes.

If you are using Object to Terrain, move the script for that into the editor file. Fixed it for me!