Browse Source

Rename IISExpressProcessLocation

pull/15/head
Eusebiu Marcu 15 years ago
parent
commit
5ecfc6dfa4
  1. 4
      src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs
  2. 4
      src/Main/Base/Project/Src/Services/WebProjectService/WebProjectService.cs

4
src/AddIns/Debugger/Debugger.AddIn/Service/WindowsDebugger.cs

@ -166,7 +166,7 @@ namespace ICSharpCode.SharpDevelop.Services
if (options.Data.WebServer == WebServer.IISExpress) { if (options.Data.WebServer == WebServer.IISExpress) {
// start IIS express and attach to it // start IIS express and attach to it
if (WebProjectService.IISVersion == IISVersion.IISExpress) if (WebProjectService.IISVersion == IISVersion.IISExpress)
System.Diagnostics.Process.Start(WebProjectService.IIISExpressProcessLocation); System.Diagnostics.Process.Start(WebProjectService.IISExpressProcessLocation);
else { else {
MessageService.ShowError("${res:ICSharpCode.WepProjectOptionsPanel.NoProjectUrlOrProgramAction}"); MessageService.ShowError("${res:ICSharpCode.WepProjectOptionsPanel.NoProjectUrlOrProgramAction}");
return; return;
@ -304,7 +304,7 @@ namespace ICSharpCode.SharpDevelop.Services
if (options.Data.WebServer == WebServer.IISExpress) { if (options.Data.WebServer == WebServer.IISExpress) {
// start IIS express // start IIS express
if (WebProjectService.IISVersion == IISVersion.IISExpress) if (WebProjectService.IISVersion == IISVersion.IISExpress)
System.Diagnostics.Process.Start(WebProjectService.IIISExpressProcessLocation); System.Diagnostics.Process.Start(WebProjectService.IISExpressProcessLocation);
else { else {
MessageService.ShowError("${res:ICSharpCode.WepProjectOptionsPanel.NoProjectUrlOrProgramAction}"); MessageService.ShowError("${res:ICSharpCode.WepProjectOptionsPanel.NoProjectUrlOrProgramAction}");
return; return;

4
src/Main/Base/Project/Src/Services/WebProjectService/WebProjectService.cs

@ -64,7 +64,7 @@ namespace ICSharpCode.SharpDevelop.Project
/// <summary> /// <summary>
/// Gets IIS Express process location. /// Gets IIS Express process location.
/// </summary> /// </summary>
public static string IIISExpressProcessLocation { public static string IISExpressProcessLocation {
get { get {
return Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles) + return Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles) +
@"\IIS Express\iisexpress.exe"; @"\IIS Express\iisexpress.exe";
@ -177,7 +177,7 @@ namespace ICSharpCode.SharpDevelop.Project
if (regValue > 4) if (regValue > 4)
return (IISVersion)regValue; return (IISVersion)regValue;
if (File.Exists(IIISExpressProcessLocation)) if (File.Exists(IISExpressProcessLocation))
return IISVersion.IISExpress; return IISVersion.IISExpress;
return IISVersion.None; return IISVersion.None;

Loading…
Cancel
Save