C
C#2mo ago
tommy

/reference flag in C# compiler

What is the use of this flag?
3 Replies
Omnissiah
Omnissiah2mo ago
Compiler Options - input file options - C# reference
C# Compiler Options to control input files for compilation. These options specify how the compiler reads metadata from dependent assemblies and modules.
tommy
tommyOP5w ago
a thing I am looking for even after making a source code file a module, I am still able to use it as a library, i.e. using /t:library during compilation so, it's the answer to this thing that I am looking by understanding the working of reference flag ohhh libraries are just a collection of modules!! i think i got it
333fred
333fred5w ago
Yes. Assemblies contain one or modules, which contain 0 or more types. However, 99% of all assemblies you will ever encounter are 1 module I really hope you're not using csc directly though We don't recommend that at all
Want results from more Discord servers?
Add your server