Пример #1
0
        private void UpdateApplicationBase(string appbase)
        {
            string basePath = null;

            if (appbase != String.Empty)
            {
                basePath = Path.Combine(project.BasePath, appbase);
                if (ProjectPath.SamePath(project.BasePath, basePath))
                {
                    basePath = null;
                }
            }

            selectedConfig.BasePath = basePath;

            // TODO: Test what happens if we set it the same as project base
            if (selectedConfig.RelativeBasePath == null)
            {
                applicationBaseTextBox.Text = string.Empty;
            }
            else
            {
                applicationBaseTextBox.Text = selectedConfig.RelativeBasePath;
            }
        }
Пример #2
0
 public void SamePath()
 {
     Assert.IsTrue(ProjectPath.SamePath(@"C:\folder1\file.tmp", @"c:\folder1\File.TMP"));
     Assert.IsTrue(ProjectPath.SamePath(@"C:\folder1\file.tmp", @"C:\folder1\.\folder2\..\file.tmp"));
     Assert.IsFalse(ProjectPath.SamePath(@"C:\folder1\file.tmp", @"C:\folder1\.\folder2\..\file.temp"));
 }