在 MonoDevelop 中,我创建了一个新的解决方案(C# 控制台应用程序)。它给了我一个简单的 hello world 程序。我按下运行按钮。我看到“构建成功”终端出现并说:
Cannot open assembly '/home/beauxq/MonoProjects/cstest/cstest/bin/Debug/cstest.exe': No such file or directory.
Press any key to continue...
Run Code Online (Sandbox Code Playgroud)
我查看那个 bin/Debug 目录,它是空的。
构建输出:
Building: cstest (Debug|x86)
Build started 7/28/2016 9:29:40 AM.
__________________________________________________
Project "/home/beauxq/MonoProjects/cstest/cstest/cstest.csproj" (Build target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: x86
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
Done building project "/home/beauxq/MonoProjects/cstest/cstest/cstest.csproj".-- FAILED
Build FAILED.
0 Warning(s)
---------------------- Done ----------------------
Build successful.
Run Code Online (Sandbox Code Playgroud)
当我从菜单中选择“构建”时,也会发生同样的情况。“构建成功”但目录为空。
Ola*_*che 11
我也只是偶然发现了这个。清理、构建、重建所有报告成功,但实际上什么也没发生。
要解决此问题,您必须安装 package mono-devel,它也在推荐标签中
推荐:libglade2.0-cil-dev、libgtk2.0-cil-dev、mono-devel
也许你安装了带有 option的 monodevelop --no-install-recommends,或者APT::Install-Recommends "false";像我一样在你的 apt.conf(.d) 中的某个地方。
另请参阅如何不安装推荐和建议的软件包?关于推荐的包和no-install-recommends.
| 归档时间: |
|
| 查看次数: |
7033 次 |
| 最近记录: |