Skip to content

Commit

Permalink
Fix #75
Browse files Browse the repository at this point in the history
  • Loading branch information
InedoJohn committed Nov 18, 2019
1 parent a9058f1 commit d8c090f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Expand Up @@ -188,10 +188,17 @@ public static void SetMwaSite(ILogSink logger, IisSiteConfiguration config, Site
if (site == null)
throw new ArgumentNullException(nameof(site));

Application app;
if (site.Applications.Count > 1)
logger.LogWarning("Site has more than one Application defined; this will only configure the first one.");
{
logger.LogDebug(@"Site has more than one Application defined; using application with path=""/"".");
app = site.Applications.FirstOrDefault(a => a.Path == "/");
}
else
{
app = site.Applications.FirstOrDefault();
}

var app = site.Applications.FirstOrDefault();
if (app == null)
{
logger.LogDebug("Site does not have an Application; creating Application...");
Expand Down
3 changes: 1 addition & 2 deletions Windows/InedoExtension/InedoExtension.csproj
Expand Up @@ -161,7 +161,6 @@
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>powershell -Command "if (Test-Path C:\Projects\BuildMaster\Extensions -PathType Container) { Compress-Archive -Path '$(TargetDir)*' -DestinationPath C:\Projects\BuildMaster\Extensions\$(TargetName).zip -Force; Move-Item C:\Projects\BuildMaster\Extensions\$(TargetName).zip -Destination C:\Projects\BuildMaster\Extensions\$(TargetName).inedox -Force }"
powershell -Command "if (Test-Path C:\Projects\Otter\Extensions -PathType Container) { Compress-Archive -Path '$(TargetDir)*' -DestinationPath C:\Projects\Otter\Extensions\$(TargetName).zip -Force; Move-Item C:\Projects\Otter\Extensions\$(TargetName).zip -Destination C:\Projects\Otter\Extensions\$(TargetName).inedox -Force }"</PostBuildEvent>
<PostBuildEvent>powershell -Command "if (Test-Path C:\Projects\Extensions\Shared -PathType Container) { Compress-Archive -Path '$(TargetDir)*' -DestinationPath C:\Projects\Extensions\Shared\$(TargetName).zip -Force; Move-Item C:\Projects\Extensions\Shared\$(TargetName).zip -Destination C:\Projects\Extensions\Shared\$(TargetName).inedox -Force }"</PostBuildEvent>
</PropertyGroup>
</Project>

0 comments on commit d8c090f

Please sign in to comment.