多个条目 [英] multiple entries

查看:101
本文介绍了多个条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在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.


这篇关于多个条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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