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); } }
private void GetNewTempOutputPath() { m_outputAssemblyPath = TempFileNameService.GetNewFileName("dll"); }