Can't start Omnisharp because of mono version

后端 未结 8 892
春和景丽
春和景丽 2021-01-11 10:11

Whenever I start up VS Code on my Mac (Yosemite), I get the following error in VS Code

Error: Cannot start Omnisharp because Mono version >=3.10.0 is required

<
相关标签:
8条回答
  • 2021-01-11 10:48

    If you followed the instructions at the asp.net website, then you should already have brew installed. If you don't you can install it from this website: http://brew.sh

    After you have that installed open a new Terminal and run the following:

    brew update && brew install mono

    Then you should be good to go. I just went through these same steps myself.

    0 讨论(0)
  • 2021-01-11 10:50

    TLDR; brew update && brew unlink mono && brew install mono


    Gathering those two answers was necessary to resolve this for me.

    I did run the script suggested by @myke-bates from here

    Which at the time of writing is:

    #!/bin/sh -x
    
    #This script removes Mono from an OS X System.  It must be run as root
    
    rm -r /Library/Frameworks/Mono.framework
    
    rm -r /Library/Receipts/MonoFramework-*
    
    for dir in /usr/bin /usr/share/man/man1 /usr/share/man/man3 /usr/share/man/man5; do
       (cd ${dir};
        for i in `ls -al | grep /Library/Frameworks/Mono.framework/ | awk '{print $9}'`; do
          rm ${i}
        done);
    done
    

    The as suggested by @ky6yet I ran brew-update && brew install mono to be advised that I had to unlink mono first so in fact I had to run

    brew update && brew unlink mono && brew install mono

    At least in my case running the script to remove mono first wasn't necessary.

    0 讨论(0)
提交回复
热议问题