Skip to content

Commit b58a0cf

Browse files
author
Paul Johnson
authored
Ensure Umbraco static assets included when publish --no-build (#11665)
* Ensure Umbraco static assets included when publish --no-build Closes #11662 * Bump version to 9.1.1
1 parent b0a4a92 commit b58a0cf

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@
3333
SkipUnchangedFiles="true" />
3434
</Target>
3535

36-
<Target Name="IncludeAppPluginsContent" BeforeTargets="GetCopyToOutputDirectoryItems">
36+
<Target Name="IncludeAppPluginsContent" BeforeTargets="GetCopyToOutputDirectoryItems;GetCopyToPublishDirectoryItems;">
3737
<ItemGroup>
3838
<_AppPluginsFiles Include="App_Plugins\**" />
3939

4040
<ContentWithTargetPath
4141
Include="@(_AppPluginsFiles)"
4242
TargetPath="%(Identity)"
43-
CopyToOutputDirectory="Always" />
43+
CopyToOutputDirectory="PreserveNewest"
44+
CopyToPublishDirectory="PreserveNewest"/>
4445
</ItemGroup>
4546
</Target>
4647

@@ -49,7 +50,7 @@
4950
A fix was put in place in Web SDK to update for wwwwroot in case someone runs npm build etc in a target, we're borrowing their trick.
5051
https://github.com/dotnet/sdk/blob/e2b2b1a4ac56c955b84d62fe71cda3b6f258b42b/src/WebSdk/Publish/Targets/ComputeTargets/Microsoft.NET.Sdk.Publish.ComputeFiles.targets
5152
-->
52-
<Target Name="IncludeUmbracoFolderContent" BeforeTargets="GetCopyToOutputDirectoryItems">
53+
<Target Name="IncludeUmbracoFolderContent" BeforeTargets="GetCopyToOutputDirectoryItems;GetCopyToPublishDirectoryItems;">
5354
<ItemGroup>
5455
<_UmbracoFolderFiles Include="umbraco\config\**" />
5556
<_UmbracoFolderFiles Include="umbraco\PartialViewMacros\**" />
@@ -65,10 +66,12 @@
6566
<ContentWithTargetPath
6667
Include="@(_UmbracoFolderFiles)"
6768
TargetPath="%(Identity)"
68-
CopyToOutputDirectory="Always" />
69+
CopyToOutputDirectory="PreserveNewest"
70+
CopyToPublishDirectory="PreserveNewest"/>
6971
</ItemGroup>
7072
</Target>
7173

74+
7275
<Target Name="ClearUmbracoAssets" BeforeTargets="Clean">
7376
<ItemGroup>
7477
<UmbracoConfigPackageDir Include="$(MSBuildProjectDirectory)\umbraco\config\" />

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.1.0",
27+
"defaultValue": "9.1.1",
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.1.0",
60+
"defaultValue": "9.1.1",
6161
"description": "The version of Umbraco to load using NuGet",
6262
"replaces": "UMBRACO_VERSION_FROM_TEMPLATE"
6363
},

src/Directory.Build.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
44

55
<PropertyGroup>
6-
<Version>9.1.0</Version>
7-
<AssemblyVersion>9.1.0</AssemblyVersion>
8-
<InformationalVersion>9.1.0</InformationalVersion>
9-
<FileVersion>9.1.0</FileVersion>
6+
<Version>9.1.1</Version>
7+
<AssemblyVersion>9.1.1</AssemblyVersion>
8+
<InformationalVersion>9.1.1</InformationalVersion>
9+
<FileVersion>9.1.1</FileVersion>
1010
<LangVersion Condition="'$(LangVersion)' == ''">9.0</LangVersion>
1111
<NeutralLanguage>en-US</NeutralLanguage>
1212
<Company>Umbraco CMS</Company>

0 commit comments

Comments
 (0)