<small id='LSFXe'></small><noframes id='LSFXe'>

  • <legend id='LSFXe'><style id='LSFXe'><dir id='LSFXe'><q id='LSFXe'></q></dir></style></legend>

          <bdo id='LSFXe'></bdo><ul id='LSFXe'></ul>
        <tfoot id='LSFXe'></tfoot>
      1. <i id='LSFXe'><tr id='LSFXe'><dt id='LSFXe'><q id='LSFXe'><span id='LSFXe'><b id='LSFXe'><form id='LSFXe'><ins id='LSFXe'></ins><ul id='LSFXe'></ul><sub id='LSFXe'></sub></form><legend id='LSFXe'></legend><bdo id='LSFXe'><pre id='LSFXe'><center id='LSFXe'></center></pre></bdo></b><th id='LSFXe'></th></span></q></dt></tr></i><div id='LSFXe'><tfoot id='LSFXe'></tfoot><dl id='LSFXe'><fieldset id='LSFXe'></fieldset></dl></div>

        重命名命名空间后找不到为 Main 方法指定的“WindowsFormsApplication1.Program&quo

        Could not find #39;WindowsFormsApplication1.Program#39; specified for Main method after renaming name space(重命名命名空间后找不到为 Main 方法指定的“WindowsFormsApplication1.Program)
          <tbody id='7mtXx'></tbody>

            <legend id='7mtXx'><style id='7mtXx'><dir id='7mtXx'><q id='7mtXx'></q></dir></style></legend>
            <i id='7mtXx'><tr id='7mtXx'><dt id='7mtXx'><q id='7mtXx'><span id='7mtXx'><b id='7mtXx'><form id='7mtXx'><ins id='7mtXx'></ins><ul id='7mtXx'></ul><sub id='7mtXx'></sub></form><legend id='7mtXx'></legend><bdo id='7mtXx'><pre id='7mtXx'><center id='7mtXx'></center></pre></bdo></b><th id='7mtXx'></th></span></q></dt></tr></i><div id='7mtXx'><tfoot id='7mtXx'></tfoot><dl id='7mtXx'><fieldset id='7mtXx'></fieldset></dl></div>
            <tfoot id='7mtXx'></tfoot>

            <small id='7mtXx'></small><noframes id='7mtXx'>

                <bdo id='7mtXx'></bdo><ul id='7mtXx'></ul>

                • 本文介绍了重命名命名空间后找不到为 Main 方法指定的“WindowsFormsApplication1.Program"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个具有默认命名空间 WindowsFormsApplication1 的 C# 应用程序.

                  I have a C# app that had the default namespace WindowsFormsApplication1.

                  我决定要使用不同的命名空间,所以我重命名了 WindowsFormsApplication1.现在,当我编译时,我得到了错误:

                  I decided that I would like to use a different namespace so I renamed WindowsFormsApplication1. Now when I compile I get the error:

                  找不到为 Main 指定的WindowsFormsApplication1.Program"方法.

                  Could not find 'WindowsFormsApplication1.Program' specified for Main method.

                  为了重命名命名空间,我在文件中突出显示了命名空间,然后按 F2.

                  To rename the namespace I highlighted the namespace in a file and hit F2.

                  如何解决这个问题并在整个项目中更改实际的命名空间?

                  How do I resolve this and change the actual namespace through out the project?

                  我正在使用 Visual C# 2010 Express.

                  I am using Visual C# 2010 Express.

                  推荐答案

                  在项目中 -> 属性将启动对象"更改为新的命名空间.

                  In project -> properties change "startup object" to the new namespace.

                  这篇关于重命名命名空间后找不到为 Main 方法指定的“WindowsFormsApplication1.Program"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  C# namespace alias - what#39;s the point?(C# 命名空间别名 - 有什么意义?)
                  Using Xpath With Default Namespace in C#(在 C# 中使用具有默认命名空间的 Xpath)
                  Generating an EDMX from a DB2 Database(从 DB2 数据库生成 EDMX)
                  IBM .NET Data Provider Connection String issue with Library List(库列表的 IBM .NET 数据提供程序连接字符串问题)
                  .NET DB2 OLEDB pre-requisites(.NET DB2 OLEDB 先决条件)
                  Referring to Code in IBM.Data.DB2 makes that Assembly Unavailable to the rest of my Solution(引用 IBM.Data.DB2 中的代码使该程序集对我的解决方案的其余部分不可用)
                  • <bdo id='PYLiu'></bdo><ul id='PYLiu'></ul>

                    <i id='PYLiu'><tr id='PYLiu'><dt id='PYLiu'><q id='PYLiu'><span id='PYLiu'><b id='PYLiu'><form id='PYLiu'><ins id='PYLiu'></ins><ul id='PYLiu'></ul><sub id='PYLiu'></sub></form><legend id='PYLiu'></legend><bdo id='PYLiu'><pre id='PYLiu'><center id='PYLiu'></center></pre></bdo></b><th id='PYLiu'></th></span></q></dt></tr></i><div id='PYLiu'><tfoot id='PYLiu'></tfoot><dl id='PYLiu'><fieldset id='PYLiu'></fieldset></dl></div>

                    1. <tfoot id='PYLiu'></tfoot>

                          <tbody id='PYLiu'></tbody>
                        <legend id='PYLiu'><style id='PYLiu'><dir id='PYLiu'><q id='PYLiu'></q></dir></style></legend>
                      • <small id='PYLiu'></small><noframes id='PYLiu'>