From 5ecfc6dfa4d96a67dd7004cb23ab058562c90348 Mon Sep 17 00:00:00 2001 From: Eusebiu Marcu Date: Wed, 12 Jan 2011 10:41:23 +0200 Subject: [PATCH] Rename IISExpressProcessLocation --- src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs | 4 ++-- .../Src/Services/WebProjectService/WebProjectService.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs b/src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs index 0eac8b6552..da7aa36d6e 100644 --- a/src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs +++ b/src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs @@ -166,7 +166,7 @@ namespace ICSharpCode.SharpDevelop.Services if (options.Data.WebServer == WebServer.IISExpress) { // start IIS express and attach to it if (WebProjectService.IISVersion == IISVersion.IISExpress) - System.Diagnostics.Process.Start(WebProjectService.IIISExpressProcessLocation); + System.Diagnostics.Process.Start(WebProjectService.IISExpressProcessLocation); else { MessageService.ShowError("${res:ICSharpCode.WepProjectOptionsPanel.NoProjectUrlOrProgramAction}"); return; @@ -304,7 +304,7 @@ namespace ICSharpCode.SharpDevelop.Services if (options.Data.WebServer == WebServer.IISExpress) { // start IIS express if (WebProjectService.IISVersion == IISVersion.IISExpress) - System.Diagnostics.Process.Start(WebProjectService.IIISExpressProcessLocation); + System.Diagnostics.Process.Start(WebProjectService.IISExpressProcessLocation); else { MessageService.ShowError("${res:ICSharpCode.WepProjectOptionsPanel.NoProjectUrlOrProgramAction}"); return; diff --git a/src/Main/Base/Project/Src/Services/WebProjectService/WebProjectService.cs b/src/Main/Base/Project/Src/Services/WebProjectService/WebProjectService.cs index 443d290136..639ef591fb 100644 --- a/src/Main/Base/Project/Src/Services/WebProjectService/WebProjectService.cs +++ b/src/Main/Base/Project/Src/Services/WebProjectService/WebProjectService.cs @@ -64,7 +64,7 @@ namespace ICSharpCode.SharpDevelop.Project /// /// Gets IIS Express process location. /// - public static string IIISExpressProcessLocation { + public static string IISExpressProcessLocation { get { return Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles) + @"\IIS Express\iisexpress.exe"; @@ -177,7 +177,7 @@ namespace ICSharpCode.SharpDevelop.Project if (regValue > 4) return (IISVersion)regValue; - if (File.Exists(IIISExpressProcessLocation)) + if (File.Exists(IISExpressProcessLocation)) return IISVersion.IISExpress; return IISVersion.None;