Skip to content

Commit 79fdb9a

Browse files
Merge branch 'v9/dev' into v9/contrib
2 parents b74bed3 + d6b4fd5 commit 79fdb9a

File tree

64 files changed

+1566
-956
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1566
-956
lines changed

build/NuSpecs/build/Umbraco.Cms.StaticAssets.targets

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
<UmbracoWwwrootName Condition="'$(UmbracoWwwrootName)' == ''">umbraco</UmbracoWwwrootName>
77
</PropertyGroup>
88

9-
<Target Name="CopyUmbracoAssets" BeforeTargets="Build">
9+
<Target Name="CopyUmbracoAssets" BeforeTargets="BeforeBuild">
1010
<ItemGroup>
11-
1211
<ContentFiles Include="$(ContentFilesPath)" />
1312
<ContentWwwrootFiles Include="$(ContentWwwrootFilesPath)" />
1413
</ItemGroup>

build/azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ stages:
373373
- task: NuGetCommand@2
374374
displayName: Restore NuGet Packages
375375
inputs:
376-
restoreSolution: '*\src\umbraco.sln'
376+
restoreSolution: 'umbraco.sln'
377377
feedsToUse: config
378378
- task: PowerShell@1
379379
displayName: Update Version and Artifact Name

build/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@
390390
Write-Host "Restore NuGet"
391391
Write-Host "Logging to $($this.BuildTemp)\nuget.restore.log"
392392
$params = "-Source", $nugetsourceUmbraco
393-
&$this.BuildEnv.NuGet restore "$($this.SolutionRoot)\src\umbraco-netcore-only.sln" > "$($this.BuildTemp)\nuget.restore.log" @params
393+
&$this.BuildEnv.NuGet restore "$($this.SolutionRoot)\umbraco-netcore-only.sln" > "$($this.BuildTemp)\nuget.restore.log" @params
394394
if (-not $?) { throw "Failed to restore NuGet packages." }
395395
})
396396

@@ -401,7 +401,7 @@
401401

402402
Write-Host "Create NuGet packages"
403403

404-
&dotnet pack "$($this.SolutionRoot)\src\umbraco-netcore-only.sln" `
404+
&dotnet pack "$($this.SolutionRoot)\umbraco-netcore-only.sln" `
405405
--output "$($this.BuildOutput)" `
406406
--verbosity detailed `
407407
-c Release `

build/templates/UmbracoPackage/.template.config/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"version": {
2525
"type": "parameter",
2626
"datatype": "string",
27-
"defaultValue": "9.0.0",
27+
"defaultValue": "9.1.0",
2828
"description": "The version of Umbraco to load using NuGet",
2929
"replaces": "UMBRACO_VERSION_FROM_TEMPLATE"
3030
},

build/templates/UmbracoProject/.template.config/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"version": {
5858
"type": "parameter",
5959
"datatype": "string",
60-
"defaultValue": "9.0.0",
60+
"defaultValue": "9.1.0",
6161
"description": "The version of Umbraco to load using NuGet",
6262
"replaces": "UMBRACO_VERSION_FROM_TEMPLATE"
6363
},

build/templates/UmbracoProject/UmbracoProject.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
<DefaultItemExcludes>$(DefaultItemExcludes);wwwroot/media/**;</DefaultItemExcludes>
99
</PropertyGroup>
1010

11+
<!-- Force windows to use ICU. Otherwise Windows 10 2019H1+ will do it, but older windows 10 and most if not all winodws servers will run NLS -->
12+
<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
13+
<PackageReference Include="Microsoft.ICU.ICU4C.Runtime" Version="68.2.0.6" />
14+
<RuntimeHostConfigurationOption Include="System.Globalization.AppLocalIcu" Value="68.2" />
15+
</ItemGroup>
16+
1117
<ItemGroup>
1218
<PackageReference Include="Umbraco.Cms" Version="UMBRACO_VERSION_FROM_TEMPLATE" />
1319
<PackageReference Include="Umbraco.Cms.SqlCe" Version="UMBRACO_VERSION_FROM_TEMPLATE" Condition="'$(UseSqlCe)' == 'true'" />
@@ -30,6 +36,10 @@
3036
<Compile Include="umbraco/models/**" Exclude="**/*.flag" />
3137
</ItemGroup>
3238

39+
<PropertyGroup>
40+
<CopyRazorGenerateFilesToPublishDirectory>true</CopyRazorGenerateFilesToPublishDirectory>
41+
</PropertyGroup>
42+
3343
<!-- Set this to true if ModelsBuilder mode is not InMemoryAuto-->
3444
<PropertyGroup>
3545
<RazorCompileOnBuild>false</RazorCompileOnBuild>

src/Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>9.0.0</Version>
4-
<AssemblyVersion>9.0.0</AssemblyVersion>
5-
<InformationalVersion>9.0.0</InformationalVersion>
6-
<FileVersion>9.0.0</FileVersion>
3+
<Version>9.1.0</Version>
4+
<AssemblyVersion>9.1.0</AssemblyVersion>
5+
<InformationalVersion>9.1.0</InformationalVersion>
6+
<FileVersion>9.1.0</FileVersion>
77
<LangVersion Condition="'$(LangVersion)' == ''">9.0</LangVersion>
88
<NeutralLanguage>en-US</NeutralLanguage>
99
<Company>Umbraco CMS</Company>

src/JsonSchema/AppSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class CmsDefinition
4747
public RichTextEditorSettings RichTextEditor { get; set; }
4848
public RuntimeMinificationSettings RuntimeMinification { get; set; }
4949
public BasicAuthSettings BasicAuth { get; set; }
50+
public PackageMigrationSettings PackageMigration { get; set; }
5051
}
5152

5253
/// <summary>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// Copyright (c) Umbraco.
2+
// See LICENSE for more details.
3+
4+
using System.ComponentModel;
5+
6+
namespace Umbraco.Cms.Core.Configuration.Models
7+
{
8+
/// <summary>
9+
/// Typed configuration options for package migration settings.
10+
/// </summary>
11+
[UmbracoOptions(Constants.Configuration.ConfigPackageMigration)]
12+
public class PackageMigrationSettings
13+
{
14+
private const bool StaticRunSchemaAndContentMigrations = true;
15+
private const bool StaticAllowComponentOverrideOfRunSchemaAndContentMigrations = true;
16+
17+
/// <summary>
18+
/// Gets or sets a value indicating whether package migration steps that install schema and content should run.
19+
/// </summary>
20+
/// <remarks>
21+
/// By default this is true and schema and content defined in a package migration are installed.
22+
/// Using configuration, administrators can optionally switch this off in certain environments.
23+
/// Deployment tools such as Umbraco Deploy can also configure this option to run or not run these migration
24+
/// steps as is appropriate for normal use of the tool.
25+
/// </remarks>
26+
[DefaultValue(StaticRunSchemaAndContentMigrations)]
27+
public bool RunSchemaAndContentMigrations { get; set; } = StaticRunSchemaAndContentMigrations;
28+
29+
/// <summary>
30+
/// Gets or sets a value indicating whether components can override the configured value for <see cref="RunSchemaAndContentMigrations"/>.
31+
/// </summary>
32+
/// <remarks>
33+
/// By default this is true and components can override the configured setting for <see cref="RunSchemaAndContentMigrations"/>.
34+
/// If an administrator wants explicit control over which environments migration steps installing schema and content can run,
35+
/// they can set this to false. Components should respect this and not override the configuration.
36+
/// </remarks>
37+
[DefaultValue(StaticAllowComponentOverrideOfRunSchemaAndContentMigrations)]
38+
public bool AllowComponentOverrideOfRunSchemaAndContentMigrations { get; set; } = StaticAllowComponentOverrideOfRunSchemaAndContentMigrations;
39+
}
40+
}

src/Umbraco.Core/Configuration/Models/RuntimeMinificationSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class RuntimeMinificationSettings
77
{
88
internal const bool StaticUseInMemoryCache = false;
99
internal const string StaticCacheBuster = "Version";
10+
internal const string StaticVersion = null;
1011

1112
/// <summary>
1213
/// Use in memory cache
@@ -19,5 +20,11 @@ public class RuntimeMinificationSettings
1920
/// </summary>
2021
[DefaultValue(StaticCacheBuster)]
2122
public RuntimeMinificationCacheBuster CacheBuster { get; set; } = Enum<RuntimeMinificationCacheBuster>.Parse(StaticCacheBuster);
23+
24+
/// <summary>
25+
/// The unique version string used if CacheBuster is 'Version'.
26+
/// </summary>
27+
[DefaultValue(StaticVersion)]
28+
public string Version { get; set; } = StaticVersion;
2229
}
2330
}

0 commit comments

Comments
 (0)