|
|
|
@ -30,16 +30,13 @@ namespace ICSharpCode.AspNet.Mvc
@@ -30,16 +30,13 @@ namespace ICSharpCode.AspNet.Mvc
|
|
|
|
|
CreateWebProject(project); |
|
|
|
|
if (!WebProjectService.IsIISOrIISExpressInstalled) { |
|
|
|
|
StatusLabel.Text = ResourceService.GetString("ICSharpCode.WebProjectOptionsPanel.IISNotFound"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (properties.UseIISExpress) { |
|
|
|
|
if (WebProjectService.IsIISExpressInstalled) { |
|
|
|
|
UseIISExpress.IsChecked = true; |
|
|
|
|
PortTextBox.Text = properties.DevelopmentServerPort.ToString(); |
|
|
|
|
ProjectUrl.Text = String.Empty; |
|
|
|
|
SelectIISExpress(); |
|
|
|
|
} |
|
|
|
|
if (properties.UseIISExpress) { |
|
|
|
|
UseIISExpress.IsChecked = true; |
|
|
|
|
PortTextBox.Text = properties.DevelopmentServerPort.ToString(); |
|
|
|
|
ProjectUrl.Text = String.Empty; |
|
|
|
|
SelectIISExpress(); |
|
|
|
|
} else if (properties.UseIIS) { |
|
|
|
|
if (WebProjectService.IISVersion != IISVersion.None) { |
|
|
|
|
UseLocalIIS.IsChecked = true; |
|
|
|
@ -101,13 +98,12 @@ namespace ICSharpCode.AspNet.Mvc
@@ -101,13 +98,12 @@ namespace ICSharpCode.AspNet.Mvc
|
|
|
|
|
bool isIISExpressInstalled = WebProjectService.IsIISExpressInstalled; |
|
|
|
|
|
|
|
|
|
if (!isIISExpressInstalled) { |
|
|
|
|
UseIISExpress.IsChecked = false; |
|
|
|
|
properties.UseIISExpress = false; |
|
|
|
|
StatusLabel.Text = ResourceService.GetString("ICSharpCode.WebProjectOptionsPanel.IISNotFound"); |
|
|
|
|
} else { |
|
|
|
|
StatusLabel.Text = String.Empty; |
|
|
|
|
} |
|
|
|
|
IISExpressGroup.IsEnabled = CreateVirtualDirectoryButton.IsEnabled = isIISExpressInstalled; |
|
|
|
|
IISExpressGroup.IsEnabled = true; |
|
|
|
|
CreateVirtualDirectoryButton.IsEnabled = isIISExpressInstalled; |
|
|
|
|
LocalIISGroup.IsEnabled = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -126,13 +122,12 @@ namespace ICSharpCode.AspNet.Mvc
@@ -126,13 +122,12 @@ namespace ICSharpCode.AspNet.Mvc
|
|
|
|
|
|
|
|
|
|
if (!isIISInstalled) { |
|
|
|
|
StatusLabel.Text = ResourceService.GetString("ICSharpCode.WebProjectOptionsPanel.IISNotFound"); |
|
|
|
|
ProjectUrl.Text = String.Empty; |
|
|
|
|
UseLocalIIS.IsChecked = false; |
|
|
|
|
} else { |
|
|
|
|
StatusLabel.Text = String.Empty; |
|
|
|
|
ProjectUrl.Text = properties.IISUrl; |
|
|
|
|
} |
|
|
|
|
LocalIISGroup.IsEnabled = CreateVirtualDirectoryButton.IsEnabled = isIISInstalled; |
|
|
|
|
LocalIISGroup.IsEnabled = true; |
|
|
|
|
CreateVirtualDirectoryButton.IsEnabled = isIISInstalled; |
|
|
|
|
IISExpressGroup.IsEnabled = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|