C#實現(xiàn)將記事本中的代碼編譯成可執(zhí)行文件的方法
更新時間:2014年08月13日 10:27:35 投稿:shichen2014
這篇文章主要介紹了C#實現(xiàn)將記事本中的代碼編譯成可執(zhí)行文件的方法,很實用的技巧,需要的朋友可以參考下
本文實例講述了C#實現(xiàn)將記事本中的代碼編譯成可執(zhí)行文件的方法,運行環(huán)境為VS2012,具體方法如下:
1、在記事本中編寫如下代碼:
using System;
namespace HelloWorld
{
public class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello,World");
Console.ReadKey();
}
}
}
2、保存為HelloWorld.txt,位置在F:\學習\練習\NET之美\學習\練習\NET之美。
3、打開開發(fā)人員命令提示。

4、輸入如下命令

5、最終把HelloWorld.txt轉換成了Hi.exe可執(zhí)行文件。
相關文章
c# asp .net 動態(tài)創(chuàng)建sql數(shù)據(jù)庫表的方法
c# asp .net 動態(tài)創(chuàng)建sql數(shù)據(jù)庫表的方法,需要的朋友可以參考一下2013-04-04
C# Winform DataGridView數(shù)據(jù)刷新問題的解決辦法
DataGridView 是比較常用的表格控件,在 DataGridView 中顯示數(shù)據(jù), 一般使用 dataGridView1.DataSource = 數(shù)據(jù)源,來綁定數(shù)據(jù),那么如何做到及時刷新數(shù)據(jù)呢,本文給大家介紹了C# Winform DataGridView數(shù)據(jù)刷新問題的解決辦法,需要的朋友可以參考下2024-09-09

