C # 01/26/2015

Source: Internet
Author: User

In the right column, under Project properties, change the output to the class library. Generate. dll files under \bin\debug


Setting set up startup Project set as Startup Project


C:\Windows\Microsoft.NET\Framework\v4.0.30319 under the csc.exe is the C # compiler


using system; public class helloworld{                public static void main (String[] args)                  {                                 console.writeline ("Hello World");                                 console.writeline ("Enter any key  to exit ... ");                                 Console.read ();                }} 


Developer Command Prompt for Vs2012.exe tool


1.c:\program Files (x86) \microsoft Visual Studio 11.0> csc/?

---the usage of CSC


2.c:\program Files (x86) \microsoft Visual Studio 11.0>csc/t:exe/out:c:\users\jz9

1129\documents\visual Studio 2012\temporary\helloword.exe C:\Users\jz91129\Docum

Ents\visual Studio 2012\temporary\helloworld.cs

Microsoft (R) Visual C # Compiler version 4.0.30319.18408

For Microsoft (R). NET Framework 4.5

Copyright (C) Microsoft Corporation. All rights reserved.


Error Cs2001:source file ' Studio ' could not being found

Error Cs2001:source file ' 2012\temporary\helloword.exe ' could not being found

Error Cs2001:source file ' C:\Users\jz91129\Documents\Visual ' could not being found

Error Cs2001:source file ' Studio ' could not being found

Error Cs2001:source file ' 2012\temporary\helloworld.cs ' could not being found

Warning Cs2008:no source files specified


C:\Program Files (x86) \microsoft Visual Studio 11.0>csc/t:exe/out:c:\cstemp\he

Lloworld.exe C:\cstemp\helloworld.cs

Microsoft (R) Visual C # Compiler version 4.0.30319.18408

For Microsoft (R). NET Framework 4.5

Copyright (C) Microsoft Corporation. All rights reserved.



C:\Program Files (x86) \microsoft Visual Studio 11.0>

There can be no spaces in the visible path


3.>ildasm--decompile. NET EXE and DLL files


4.> SN/? Generating a pair of public-key private key pairs

Signing--Browser--> joins generated SNK in--Properties


5.c:\windows\assembly all the public assembly on the computer


6.homework

--strong Name an assembly

--add to GAC

Resources:

Http://www.cnblogs.com/lly001001/archive/2012/05/24/2515930.html

HTTPS://MSDN.MICROSOFT.COM/EN-US/LIBRARY/EX0SS12C (v=vs.110). aspx


C # 01/26/2015

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.