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.
Â
⇒First Visual C# Program in Visual Studio 2017
⇒⇒Visual Studio Tutorials
2017-08-06, 1994👍, 0💬
Popular Posts:
What Azure AD App Registration Manifest? Azure AD App Registration Manifest is JSON file that contai...
How to write a policy to set and get custom variables? Here is a policy that sets and gets custom va...
How To Read Data from Keyboard (Standard Input) in PHP? If you want to read data from the standard i...
How to add request body examples to my Azure API operation to make it more user friendly? If you hav...
What Is Azure API Management Service? Azure API Management as a turnkey solution for publishing APIs...