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