简体   繁体   English

C#,如何在Windows Powershell(Windows 10)上配置Mono? (环境变量PATH)

[英]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. 我在桌面上安装了mono-4.6.2.16-x64-0.msi。 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.' 我试图通过以下方法添加环境变量:“控制面板”>“系统”>“高级系统”>“环境变量”>“ PATH”>“编辑”>“添加”>“ C:\\ Users \\ myAccount \\ Desktop”(我在其中安装了Mono),然后单击“确定”后,我打开了Windows Powershell但是未设置PATH。当我键入“ mono --version”时,它提示“无法识别术语'mono'。” What should I do? 我该怎么办?

By defaul the mono-4.6.2.16-x64-0.msi install mono in C:\\Program Files\\Mono . 通过默认将mono-4.6.2.16-x64-0.msi安装在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. 如果将路径C:\\Program Files\\Mono\\bin到您的用户路径,则可以从PowerShell启动mono,这样就可以了。

Now you just have to adapt this to your installation. 现在,您只需要使它适应您的安装即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从 C# 中的 Windows10Forms 获取按钮句柄? - How do I get a button handle from Windows10Forms in C#? 如何在Windows上使用C#获取chrome.exe的路径? - How do I use C# to get the path to chrome.exe on Windows? c#什么是Windows 10快速访问路径? - c# What is Windows 10 QuickAccess Path? 如何在Visual C#或C ++中正确处理Windows 10应用程序的暂停? - How do I handle suspension of Windows 10 apps correctly in Visual C# or C++? 如何在Windows10快速访问C#中获取所有目录的列表 - How do you get a list of all directories in Windows10 Quick Access c# 如何在IIS 10上使用C#Razor获取Windows用户域/用户名? - How do you get Windows user domain/username with C# Razor on IIS 10? C#/ mono:获取Windows和Linux上的子进程列表 - C#/mono: get list of child processes on Windows and Linux 如何在 Windows 10 上的 C# (Visual Studio 2017) 中录制音频? - How do I record audio in C# (Visual Studio 2017) on Windows 10? 我如何(在Windows 10上)设置要用C#开发的Godot项目并导出到web / html5? - How do I (on Windows 10) set up a Godot project to be developed in C# and export to web/html5? ac#中的环境变量 - environmental variable in a c#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM