protected virtual string EmitAssemblyFromResource(string resource, Assembly[] references) { CopyDependenciesToTemp(); string resourceName = ResourceServices.CompleteResourceName(GetType(), resource); return(CompilationServices.EmitAssemblyFromResource(resourceName, references)); }
private string CompileAndInstrumentCFAssembly(string version) { var assemblyPath = string.Empty; CompilationServices.ExtraParameters.Using( "/nostdlib+", delegate { assemblyPath = CompilationServices.EmitAssemblyFromResource( ResourceServices.CompleteResourceName(GetType(), "CFInstrumentationSubject"), ReferencesFor(version)); Db4oTool.Program.Run(ProgramOptionsFor(assemblyPath)); }); return(assemblyPath); }