C# CompileAssemblyFromSource, add referenced assemblies it needs?

百般思念 提交于 2019-12-01 04:17:44
  1. Read the article How the Runtime Locates Assemblies
  2. Before compiling the code load all the assemblies found in the locations mentioned in point 1
  3. Load all the types in all the assemblies and keep a dictionary of namespace, type pair
  4. When a using is encountered in the source try adding reference of assemblies from the dictionary in 3
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!