C# project minimum references set -
i have class library project in c# references system assembly; compiles fine, cannot used on own class library.
the projects use library have greater number of referenced assemblies. in particular, seem include system.core , microsoft.csharp, among others. projects work fine right now, cant wonder if works because library's needed dlls subset of enclosing project, or because .net assemblies in gac , magically found when required transitively.
what minimum acceptable reference set assuming hello world program (i.e. no linq, no xml, no configuration, etc.)?
should library project reference system.core , microsoft.csharp explicitly? these sound pretty important.
=====
edit: class library project template in visual studio includes system.core , microsoft.csharp default, though removing them seems ok. why i'm wondering if being referenced implicitly.
what minimum acceptable reference set assuming hello world program
this one:
// helloworld.cs namespace helloworld { class program { static void main() { system.console.writeline("hello, world!"); } } } will depend mscorlib. compile way:
csc.exe helloworld.cs
Comments
Post a Comment