Example #1
0
        static string GetGacUtil(int num)
        {
            GACManager manager = new GACManager();

            string[] paths = manager.GetGacUtilValidPaths();
            if (paths.Length < num)
            {
                throw new Exception("Gacutil под таким номером не существует.");
            }
            return(paths[num]);
        }
Example #2
0
        private void Main_Load(object sender, EventArgs e)
        {
            SetProjectBoxItems();
            GACManager gacManager = new GACManager();

            string[] gacPaths = gacManager.GetGacUtilValidPaths();
            gacPathsBox.Items.AddRange(GetPathsItems(gacPaths));
            if (gacPathsBox.Items.Count > 0)
            {
                gacPathsBox.SelectedIndex = 0;
            }
        }