如何在Mono上使用ComandLine在Windows操作系统上调试c#项目
我从官方网站下载了Mono,我使用CMD添加了路径:如何在Mono上使用ComandLine在Windows操作系统上调试c#项目,c#,mono,command,line,exe,C#,Mono,Command,Line,Exe,我从官方网站下载了Mono,我使用CMD添加了路径:setx路径“%path%;C:\Programs\Mono\bin”,然后打开Mono查看comands我使用记事本编写了一个代码来测试它: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class P
setx路径“%path%;C:\Programs\Mono\bin”
,然后打开Mono查看comands我使用记事本编写了一个代码来测试它:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
Console.ReadLine();
}
}
}
我把它命名为mis.cs,现在我想调试它!
我写了cd C:/Users…
然后我第一次尝试了mono-mis.cs
,但是说无法打开程序集'mis.cs':文件不包含有效的CIL映像。
然后我写了mono-debug-mis.cs
并说了同样的话。我还尝试了“mono--debug mis.cs-o mis.exe”和同样的方法。
我该怎么办?我不想使用Microsoft,我想使用旧方法。看看他们的文档…->也用mono编译->