コード例 #1
0
        public static int Main(String[] args)
        {
            // Parse the command line arguments
            if (!ParseArguments(args, ref s_Options))
            {
                return(ErrorReturnCode);
            }

            // If we are not in silent mode then print the logo
            if (!s_Options.m_bSilentMode)
            {
                PrintLogo();
            }

            try
            {
                GenMan32Code.Run(s_Options);
                ReportResult();
                return(SuccessReturnCode);
            }
            catch (Exception e)
            {
                Console.WriteLine("Error: {0}", e.Message);
                return(ErrorReturnCode);
            }
        }
コード例 #2
0
        public Object ResolveRef(Assembly asm)
        {
            UCOMITypeLib rslt = null;

            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.tmp";

            // Export the typelib for the module.
            rslt = GenMan32Code.GenerateTypeLib(asm, ref FullyQualifiedTypeLibName);

            return(rslt);
        }
コード例 #3
0
 internal UCOMITypeLib GenerateTypeLib(String strAssemblyName, ref String strTlbName)
 {
     return(GenMan32Code.GenerateTypeLib(strAssemblyName, ref strTlbName));
 }
コード例 #4
0
 internal void GenerateWin32ManifestFile(String strAssemblyManifestFileName, String strAssemblyName, bool bGenerateTypeLib, String strReferenceFiles)
 {
     GenMan32Code.GenerateWin32ManifestFile(strAssemblyManifestFileName, strAssemblyName, bGenerateTypeLib, strReferenceFiles);
 }