same problem for me ,I solved it by check and update the build setting on my build.target.cs file
make sure use the latest build settings,hope this will help
DefaultBuildSettings = BuildSettingsVersion.Latest;
this will recompile your project and relavent engine modules ,it will take some time,but requires no source code changing