Esempio n. 1
0
        static Func <string, bool> MatchProjectName(Project project)
        {
            string fileName = Path.GetFileName(project.FileName) + "";
            string pattern  = Options.ReadString(Options.GacUtilRegex);

            return(s => {
                string s1 = s.Split('|')[0];
                return s1 == project.FileName && (!string.IsNullOrEmpty(pattern) && !Regex.IsMatch(fileName, pattern));
            });
        }
Esempio n. 2
0
        private void convertProject_Execute(ExecuteEventArgs ea)
        {
            string path  = Options.ReadString(Options.ProjectConverterPath);
            string token = Options.ReadString(Options.Token);

            if (!string.IsNullOrEmpty(path) && !string.IsNullOrEmpty(token))
            {
                var directoryName = Path.GetDirectoryName(CodeRush.Solution.Active.FileName);

                var userName = string.Format("/s /k:{0} \"{1}\"", token, directoryName);
                Process.Start(path, userName);
                actionHint1.Text = "Project Converter Started !!!";
                Rectangle rectangle = Screen.PrimaryScreen.Bounds;
                actionHint1.PointTo(new Point(rectangle.Width / 2, rectangle.Height / 2));
            }
        }