コード例 #1
0
ファイル: regcode.cs プロジェクト: wolewd/Windows-Server-2003
        public Object ResolveRef(Assembly asm)
        {
            UCOMITypeLib rslt = null;

            // Retrieve the path of the assembly on disk.
            Module[] aModule = asm.GetLoadedModules();
            String   asmPath = Path.GetDirectoryName(aModule[0].FullyQualifiedName);

            // If the typelib name is null then create it from the assembly name.
            String FullyQualifiedTypeLibName = Path.Combine(asmPath, asm.GetName().Name) + ".tlb";

            if (RegCode.s_Options.m_bVerboseMode)
            {
                Console.WriteLine(Resource.FormatString("Msg_AutoExpAndRegAssembly", asm.GetName().Name, FullyQualifiedTypeLibName));
            }

            // Export the typelib for the module.
            rslt = RegCode.DoExportAndRegister(asm, FullyQualifiedTypeLibName);

            return(rslt);
        }
コード例 #2
0
 public int Run(RegAsmOptions s_options)
 {
     return(RegCode.Run(s_options));
 }