Visual Studio社区和企业安装有何不同?

时间:2018-12-06 07:31:27

标签: visual-studio-2017

因此,我通过

通过命令行下载了vs社区
        if (!Directory.Exists(mailbox))
        {
            Directory.CreateDirectory(mailbox);
        }
        MailServer oServer = new MailServer("servername",
                    "username", "password", ServerProtocol.Imap4);
        MailClient oClient = new MailClient("TryIt");
        oServer.SSLConnection = true;
        oServer.Port = 143;     
        try
        {
            oClient.Connect(oServer);
            MailInfo[] infos = oClient.GetMailInfos();
            for (int i = 0; i < infos.Length; i++)
            {
                MailInfo info = infos[i];
                Console.WriteLine("Index: {0}; Size: {1}; UIDL: {2}; Flags: {3}",
                    info.Index, info.Size, info.UIDL, info.Flags);

                // Receive email from POP3 server
                Mail oMail = oClient.GetMail(info);

                Console.WriteLine("From: {0}", oMail.From.ToString());
                Console.WriteLine("To: {0}", oMail.To.ToString());
                Console.WriteLine("Subject: {0}\r\n", oMail.Subject);
                if (oMail.Attachments.Length > 0)
                {
                    for (int j = 0; j <= oMail.Attachments.Length - 1; j++)
                        {
                            System.DateTime d = System.DateTime.Now;
                            System.Globalization.CultureInfo cur = new System.Globalization.CultureInfo("en-US");
                            string sdate = d.ToString("MMddyyyyHHmmss", cur);
                            string fileName = String.Format("{0}\\{1}{2}{3}.eml", mailbox, sdate, d.Millisecond.ToString("d3"), i);

                            // Save email to local disk
                            oMail.SaveAs(fileName, true);



                            // Mark email as deleted from POP3 server.
                            oClient.Delete(info);
                        }
                    }
            }
            // Quit and purge emails marked as deleted from POP3 server.
            oClient.Quit();
        }
        catch (Exception ep)
        {
            Console.WriteLine(ep.Message);
        }

它运行完美。

现在,我想下载企业版,但我不禁以为我已经下载的几个软件包是相同的。我试图取代 企业版的vs_community.exe --layout C:\Downloads\vs2k7community --lang en-US -add Microsoft.VisualStudio.Workload.Data Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.NetCoreTools Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Component.DependencyValidation.Community Microsoft.VisualStudio.Component.TypeScript.3.0 vs_community.exe with vs_enterprise.exe。好吧,当我运行安装程序时,所要做的就是让我更新社区安装,而不是新的企业安装。

那么,这两者之间有什么共同点吗?我可以保存下载的任何软件包吗?

0 个答案:

没有答案