monodevelop cannot execute project(monodevelop 无法执行项目)
问题描述
我已经安装了 monodevelop 并在 C# 控制台中编写了一个 hello world 程序,但是在运行配置中我选择在外部控制台中运行复选框并单击运行按钮 monodevelop 说:无法执行{Project Path}"
i have install monodevelop and write a hello world program in C# console but when in run configuration i choose run in external console check box and click on run button monodevelop says: Cannot execute "{Project Path}"
操作系统:Debian、Kali 2
Os: Debian, Kali 2
并且 Console.ReadLine() 在默认运行配置中不起作用.
and Console.ReadLine() Doesn't work in default run configuration.
已添加屏幕截图屏幕截图
推荐答案
我遇到了同样的问题,这是我的解决方案.
I had the same problem, here is my solution.
操作系统:Linux Mint 18.1 Cinnamon 64 位
OS: Linux Mint 18.1 Cinnamon 64-Bit
Monodevelop:6.1.2.44 flatpak 安装
Monodevelop: 6.1.2.44 flatpak installation
afaik MonoDevelop 需要 xterm 或 gnome-terminal 在外部控制台中运行程序.如果两者都缺失,则会出现无法执行..."错误.
afaik MonoDevelop needs xterm or gnome-terminal for running a program in an external console. If both are missing you get "Cannot execute..." errors.
MonoDevelop 日志显示:~/.var/app/com.xamarin.MonoDevelop/cache/MonoDevelop-6.0/Logs/Ide.log
The MonoDevelop log shows:
~/.var/app/com.xamarin.MonoDevelop/cache/MonoDevelop-6.0/Logs/Ide.log
ERROR [2017-01-10 19:47:49Z]: Cannot execute "/home/...exe"
System.InvalidOperationException: Cannot start process because a file name has not been provided.
在我的情况下,我必须安装 xterm 并将其复制到 flatpak 运行时的依赖项:
In my case i had to install xterm and copy it and it's dependencies to the flatpak runtime:
sudo apt-get install xterm
cp -v /usr/bin/xterm ~/.local/share/flatpak/runtime/org.freedesktop.Platform/x86_64/1.4/active/files/bin/
cp -v /usr/lib/x86_64-linux-gnu/libXaw* ~/.local/share/flatpak/runtime/org.freedesktop.Platform/x86_64/1.4/active/files/lib/
cp -v /usr/lib/x86_64-linux-gnu/libXmu* ~/.local/share/flatpak/runtime/org.freedesktop.Platform/x86_64/1.4/active/files/lib/
cp -v /usr/lib/x86_64-linux-gnu/libutempter* ~/.local/share/flatpak/runtime/org.freedesktop.Platform/x86_64/1.4/active/files/lib/
cp -v /lib/x86_64-linux-gnu/libpng12* ~/.local/share/flatpak/runtime/org.freedesktop.Platform/x86_64/1.4/active/files/lib/
cp -v /lib/x86_64-linux-gnu/libtinfo* ~/.local/share/flatpak/runtime/org.freedesktop.Platform/x86_64/1.4/active/files/lib/
也许不是最好的解决方案,但它对我有用.
Maybe not the best solution but it works for me.
这篇关于monodevelop 无法执行项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:monodevelop 无法执行项目


基础教程推荐
- 全局 ASAX - 获取服务器名称 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01