コード例 #1
0
 public ReferenceResolver(string rootAssemblyPath)
 {
     if (m_loadedAssemblies.ContainsKey(rootAssemblyPath))
     {
         RootAssembly = m_loadedAssemblies[rootAssemblyPath];
     }
     else
     {
         string path = TempFileNameService.GetNewFileName(Path.GetExtension(rootAssemblyPath));
         File.Copy(rootAssemblyPath, path, true);
         RootAssembly = Assembly.LoadFile(path);
         m_loadedAssemblies.Add(rootAssemblyPath, RootAssembly);
     }
 }
コード例 #2
0
 private void GetNewTempOutputPath()
 {
     m_outputAssemblyPath = TempFileNameService.GetNewFileName("dll");
 }