简体   繁体   中英

C#, How Do I Get Mono Configured on Windows Powershell (Windows 10)? (Environmental Variable PATH)

I installed mono-4.6.2.16-x64-0.msi on my desktop. I tried to add an environmental variable by going to Control Panel > Systems > Advanced Systems > Environmental Variables > PATH > Edit > Add > C:\\Users\\myAccount\\Desktop (where I installed Mono) then after clicking OK, I opened Windows Powershell but the PATH was not set.. and when I typed "mono --version" it gave a message "The term 'mono' is not recognized.' What should I do?

By defaul the mono-4.6.2.16-x64-0.msi install mono in C:\\Program Files\\Mono . If you add the path C:\\Program Files\\Mono\\bin to your user path, you can then start mono from PowerShell and it works.

Now you just have to adapt this to your installation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM