Search Unity

Monodevelop cannot find symbols after platform switch

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

  1. rempelj

    rempelj

    Joined:
    Aug 3, 2013
    Posts:
    47
    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?

    Thanks,

    Justin