Tools, FAQ, Tutorials:
"MyLib.cs" - VC# Class and Library
How to create a VC# class and build it into a library?
✍: FYIcenter.com
If you want to create a VC# class and build it into a library,
you can follow this tutorial:
1. Create the class source code file, MyLib.cs, with a text editor:
// MyLib.cs // Copyright (c) FYIcenter.com using System; namespace fyi { public class MyLib { public static void PrintHello() { Console.WriteLine("Hello World! - From MyLib."); } } }
2. Compile and build the static library with the "csc /target:library" command:
\fyicenter>csc /target:library MyLib.cs Microsoft (R) Visual C# Compiler version 2.2.0.61624 Copyright (C) Microsoft Corporation. All rights reserved. >dir MyLib.* 09:16 AM 234 MyLib.cs 09:17 AM 3,072 MyLib.dll
3. Distribute the library file, MyLib.dll, to others to use.
2017-08-06, 1158👍, 0💬
Popular Posts:
How To Create a Directory in PHP? You can use the mkdir() function to create a directory. Here is a ...
What Is an HTML http-equiv "meta" Tag/Element? a http-equiv "meta" element is a special "meta" eleme...
How to create Hello-3.1.epub with WinRAR? I have all required files to create Hello-3.1.epub. To cre...
How to create a new API on the Publisher Portal 2017 version of an Azure API Management Service? If ...
Where to find tutorials on Using Azure API Management Publisher Dashboard? Here is a list of tutoria...