多个条目

问题描述:

我有一个在vs2008下构建的程序已经工作了多年,但现在我在Windows 8中无法再次构建它,因为它抱怨了多个入口点。只有一个Main语句,那么发生了什么?

I have a program built under vs2008 that has worked for years but now that I m in Windows 8 I cannot build it again because it complains about multiple entry points. There is only one Main statement, so what has happened?

我看到一个默认构造函数的引用,它将消除对Main语句的需要,但我不知道它的语法。

I see reference to a default constructor which will obviate the need for a Main statement, but I don't know the syntax for that.

我也看到了使用flag / main的建议,但我不知道如何完成。

I also see a suggestion to use a flag /main but I don't know how to complete that.

我不应该这样的骚扰是由于环境变化!

I shouldn't be harassed like this  by a shifting environment!

我发现了一个隐藏的文件名为g.App.cs,在解决方案集中没有提到,但是包含一个重复的主入口点。

I have discovered a hidden file called g.App.cs which is not mentioned in the solution set but nevertheless contains a duplicate Main entry point.

当我注释掉项目再次构建时。

When I comment out that the project builds again.