Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Monodevelop cannot find symbols after platform switch

Discussion in 'Editor & General Support' started by rempelj, Feb 4, 2018.

  1. rempelj


    Aug 3, 2013
    How can I force Monodevelop to reload all scripts?

    I have scripts wrapped in preprocessor directives for platform dependent compilation (e.g. #if UNITY_STANDALONE).

    Every time I switch platforms, Monodevelop loses the references to any platform dependent code for the current platform. For example, if I switch from some platform to Standalone Windows, all of my classes wrapped in #if UNITY_STANDALONE will not be recognized by Monodevelop.

    This does not affect the build but breaks Monodevelop's autocomplete, which makes working with third party APIs very difficult.

    The only way to fix this is to find the files containing the classes and manually open them. This is not ideal for large projects, and doesn't work for native plugins.

    How can I force Monodevelop to reload all scripts?