Skip to content

Commit

Permalink
Added IIS Express detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Mar 28, 2023
1 parent 08d31e9 commit 9e3a8d1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
17 changes: 17 additions & 0 deletions JexusManager/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,23 @@ private void LoadIisExpress()

private void LoadIisExpressQuick(List<string> files)
{
if (!IisExpressServerManager.ServerInstalled)
{
var result = UIService.ShowMessage(
"Didn't find IIS Express on this machine. Do you want to install it now?",
"IIS Express not found",
MessageBoxButtons.YesNo,
MessageBoxIcon.Question,
MessageBoxDefaultButton.Button1);
if (result != DialogResult.Yes)
{
return;
}

DialogHelper.ProcessStart("https://www.microsoft.com/download/details.aspx?id=48264");
return;
}

if (files.Count == 0 && !File.Exists(DialogHelper.ListIisExpress))
{
return;
Expand Down
3 changes: 1 addition & 2 deletions Microsoft.Web.Administration/AspNetCoreHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ public static void FixConfigFile(string fileName)
if (fixSection)
{
FixSection(doc);
doc.Save(fileName);
}

doc.Save(fileName);
}

private static void FixSite(XDocument xml, string siteName)
Expand Down
2 changes: 0 additions & 2 deletions Microsoft.Web.Administration/IisExpressServerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Xml.Linq;
using System.Xml.XPath;
using Rollbar;
using Exception = System.Exception;

Expand Down

0 comments on commit 9e3a8d1

Please sign in to comment.