zoukankan      html  css  js  c++  java
  • nullnullCSharp Tools Compiler

    新手发帖,很多方面都是刚入门,有错误的地方请大家见谅,欢迎批评指正

        /*

        Author: Jiangong SUN

        */

        CSharp compiler is invoked at the command line using csc.exe file located <C:\Windows\Microsoft.NET\Framework\v2.0.50727>.

        CSharp Compiler compiles CSharp code to MSIL(Intermediate Language) at compilation time in CLR (Common Language Runtime).  The compiled code(exe or dll) is managed code, and is managed by Garbage Collector(GC).

        When you execute the exe or dll file, it will be compiled by JIT(Just-In-Time) compiler, and generate native machine code for specific CPU.

        

        When you want to compile a class using csc.exe you may encounter this error: CS 1619: Cannot create temporary file

        null和null

        All you need to do is run cmd.exe as "Administrator". Re-run the compiler and it will compile the csharp file to an executable(.exe). 

        null和null

        Compile csharp code to DLL (dynamic link library). 

        null和null

        Note: .exe and .dll are all assembly files.

        Compile CSharp code to named executable file.

        每日一道理
    整个世界,因为有了阳光,城市有了生机;细小心灵,因为有了阳光,内心有了舒畅。明媚的金黄色,树丛间小影成像在叶片上泛有的点点破碎似的金灿,海面上直射反映留有的随波浪层层翻滚的碎片,为这大自然创造了美景,惹人醉的温馨之感,浓浓暖意中夹杂着的明朗与柔情,让雨过天晴后久违阳光的心灵重新得到了滋润!

        null和null

        Compile all the .CS files in current directory with a name of executable, the code mode can be DEBUG or RELEASE with optimization.

        It will generate code in mode "DEBUG" like:

        #if DEBUG
                LazySingleton s2 = LazySingleton.Instance;
                int num2 = s2.MultiplyBy5(20);
                Console.WriteLine(num2);
    #endif

        null和null

        Compile all the .CS files in current directory to a named DLL file "/target:library /out:LazyDLL.dll", and generate debug file(.pdb) with option "/debug", and doesn't display Microsoft copyright with option "/nologo", with warning level (0-4) "/warn:0".

        null和null

        Compile all the .CS file in current directory to a user personalized type of DLL.

        null和null

        

        I hope this post can do help in your work. Enjoy coding!

    文章结束给大家分享下程序员的一些笑话语录: IT业众生相
    第一级:神人,天资过人而又是技术狂热者同时还拥有过人的商业头脑,高瞻远瞩,技术过人,大器也。如丁磊,求伯君。
    第二级:高人,有天赋,技术过人但没有过人的商业头脑,通常此类人不是顶尖黑客就是技术总监之流。
    第三级:牛人,技术精湛,熟悉行业知识,敢于创新,有自己的公司和软件产品。
    第四级:工头,技术精湛,有领导团队的能力,此类人大公司项目经理居多。
    第五级:技术工人,技术精湛,熟悉行业知识但领导能力欠加,此类人大多为系分人员或资深程序员,基本上桀骜不逊,自视清高,不愿于一般技术人员为伍,在论坛上基本以高手面目出现。
    第六级:熟练工人,技术有广度无深度,喜欢钻研但浅尝辄止。此类人大多为老程序员,其中一部分喜欢利用工具去查找网上有漏洞的服务器,干点坏事以获取成绩感。如果心情好,在论坛上他们会回答菜鸟的大部分问题。此级别为软件业苦力的重要组成部分。
    第七级:工人,某些技术较熟练但缺乏深度和广度,此类人大多为程序员级别,经常在论坛上提问偶尔也回答菜鸟的问题。为软件产业苦力的主要组成部分。
    第八级:菜鸟,入门时间不长,在论坛上会反复提问很初级的问题,有一种唐僧的精神。虽然招人烦但基本很可爱。只要认真钻研,一两年后就能升级到上一层。
    第九级:大忽悠,利用中国教育的弊病,顶着一顶高学历的帽子,在小公司里混个软件部经理,设计不行,代码不行,只会胡乱支配下属,拍领导马屁,在领导面前胡吹海侃,把自己打扮成技术高手的模样。把勾心斗角的办公室文化引入技术部门,实在龌龊!
    第十级:驴或傻X,会写SELECT语句就说自己精通ORALCE,连寄存器有几种都不知道就说自己懂汇编,建议全部送到日本当IT产业工人,挣了日本人的钱还严重打击日本的软件业!

  • 相关阅读:
    [poj] 3068 "Shortest" pair of paths || 最小费用最大流
    [poj] 3686 The Windy's || 最小费用最大流
    [poj] 1235 Farm Tour || 最小费用最大流
    [poj] 3281 Dining || 最大流
    [poj] 3041 Asteroids || 最小点覆盖=最大二分图匹配
    luogu P1072 Hankson 的趣味题
    二分图最佳匹配
    181106 solution
    luogu P2216 [HAOI2007]理想的正方形
    luogu P4362 [NOI2002]贪吃的九头龙
  • 原文地址:https://www.cnblogs.com/xinyuyuanm/p/3076861.html
Copyright © 2011-2022 走看看