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

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

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