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.
⇒ "MyLibApp.cs" - Call VC# Class from Library
⇐ VC# Command Line Compiler in Visual Studio 2017
2017-08-06, ∼4620🔥, 0💬
Popular Posts:
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
Can Two Forms Be Nested? Can two forms be nested? The answer is no and yes: No. You can not nest two...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to install "C++/CLI Support" component in Visual Studio? I need to build my Visual Studio C++/CL...
How to use the RSS Online Validator at w3.org? You can follow this tutorial to learn how to use the ...