Visual Studio构建失败并且未显示任何错误

I have created simple Console.WriteLine function, on building it says build failed. But doesnt show any error / warning

enter image description here

enter image description here

评论
et_qui
et_qui

Check your build output. Sometimes you will have information about the error in the output. example: enter image description here

点赞
评论
此1不2
此1不2

Program class should be declared as public

public class Program
{
    public static void Main()
    {
        Console.WriteLine(1);
    }
}
点赞
评论