首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

初学者搞了一个hello程序,如何打包成setup.exe

2012-02-19 
菜鸟搞了一个hello程序,怎么打包成setup.exe?usingSystemusingSystem.Collections.GenericusingSystem.C

菜鸟搞了一个hello程序,怎么打包成setup.exe?
using   System;
using   System.Collections.Generic;
using   System.ComponentModel;
using   System.Data;
using   System.Drawing;
using   System.Text;
using   System.Windows.Forms;

namespace   WindowsApplication1
{
        public   partial   class   Form1   :   Form
        {
                public   Form1()
                {
                        InitializeComponent();
                }

                private   void   button1_Click(object   sender,   EventArgs   e)
                {
                        MessageBox.Show( "hello ");

                }
        }
}

这是我的第一个程序,只是显示“hello”,怎么打包成setup.exe??

谢谢先!

[解决办法]
生成一下就行了,然后到项目所在目录的 Bin\Debug 或 Bin\Release下找一下
[解决办法]
新建一个安装项目,新建项目时选 "其它项目类型 "--> 安装和部署--> 安装项目
新建安装项目后,把你的EXE文件放入去,设置文件存放目录,安装框架等,
你查下相关资料吧,生成打包就可以了

热点排行