monodevelop无法执行项目 [英] monodevelop cannot execute project

查看:181
本文介绍了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}"

Os: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无法执行项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆