c# - Given a source code, Can we find what .NET DLLs do we need? -


let's want write program takes c# source code file ( 1 single .cs file, not complicated) , want program analyze source code , result tell me .net dlls need methods used in source file. technically possible?

so example if in source file there console.writeline() method want able tell me "mscorlib.dll" needed.

in order need write compiler. way determine dll's needed first determine ever identifier / name in source file binds to. once you've established names bind can understand dlls necessary (assuming there dll list choose from).

understanding name binding though requires program understand ...

  • c# syntax
  • name binding rules
  • overload resolution rules

in short, need compiler :)


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -