diff --git a/build/build.ps1 b/build/build.ps1
index ec53199251..dafae2665a 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -452,9 +452,22 @@
if ($this.OnError()) { return }
$this.PrepareAzureGallery()
if ($this.OnError()) { return }
+ $this.PostPackageHook()
+ if ($this.OnError()) { return }
Write-Host "Done"
})
+ $ubuild.DefineMethod("PostPackageHook",
+ {
+ # run hook
+ if ($this.HasMethod("PostPackage"))
+ {
+ Write-Host "Run PostPackage hook"
+ $this.PostPackage();
+ if (-not $?) { throw "Failed to run hook." }
+ }
+ })
+
# ################################################################
# RUN
# ################################################################
diff --git a/src/SolutionInfo.cs b/src/SolutionInfo.cs
index c161c81340..ce40bd9baa 100644
--- a/src/SolutionInfo.cs
+++ b/src/SolutionInfo.cs
@@ -19,4 +19,4 @@ using System.Resources;
// these are FYI and changed automatically
[assembly: AssemblyFileVersion("8.0.0")]
-[assembly: AssemblyInformationalVersion("8.0.0-alpha.57")]
+[assembly: AssemblyInformationalVersion("8.0.0-alpha.58")]
diff --git a/src/Umbraco.Core/Composing/Current.cs b/src/Umbraco.Core/Composing/Current.cs
index 7050f3b112..cf67409925 100644
--- a/src/Umbraco.Core/Composing/Current.cs
+++ b/src/Umbraco.Core/Composing/Current.cs
@@ -61,9 +61,14 @@ namespace Umbraco.Core.Composing
internal static bool HasFactory => _factory != null;
- // for UNIT TESTS exclusively!
- // resets *everything* that is 'current'
- internal static void Reset()
+ ///
+ /// Resets . Indented for testing only, and not supported in production code.
+ ///
+ ///
+ /// For UNIT TESTS exclusively.
+ /// Resets everything that is 'current'.
+ ///
+ public static void Reset()
{
_factory.DisposeIfDisposable();
_factory = null;
@@ -78,10 +83,15 @@ namespace Umbraco.Core.Composing
Resetted?.Invoke(null, EventArgs.Empty);
}
- // for UNIT TESTS exclusively!
- // unlocks configuration, so it is possible to add configurations
- // to Current.Configs - without having to use composition.Configs
- internal static void UnlockConfigs()
+ ///
+ /// Unlocks . Intended for testing only, and not supported in production code.
+ ///
+ ///
+ /// For UNIT TESTS exclusively.
+ /// Unlocks so that it is possible to add configurations
+ /// directly to without having to wire composition.
+ ///
+ public static void UnlockConfigs()
{
if (_factory != null)
throw new InvalidOperationException("Cannot unlock configs when a factory has been set.");
diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
index a673f5d45c..43c7c40b50 100644
--- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
+++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
@@ -107,7 +107,7 @@
- 8.0.0-alpha.26
+ 8.0.0-alpha.29
diff --git a/src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml b/src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
index 8c684562cf..6b7906dac5 100644
--- a/src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
+++ b/src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
@@ -118,7 +118,7 @@
on-login="hideLoginScreen()">
- @Html.BareMinimumServerVariablesScript(Url, Url.Action("ExternalLogin", "BackOffice", new { area = ViewBag.UmbracoPath }), Model.Features, Current.Config.Global())
+ @Html.BareMinimumServerVariablesScript(Url, Url.Action("ExternalLogin", "BackOffice", new { area = ViewBag.UmbracoPath }), Model.Features, Current.Configs.Global())