Skip to content

Commit

Permalink
Don't pack template.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolajlauridsen committed Nov 28, 2024
1 parent 7177a29 commit afe9604
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/Umbraco.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ContentTargetFolders>.</ContentTargetFolders>
<NoWarn>$(NoWarn),NU5128</NoWarn>
</PropertyGroup>

<!-- Added project references as the sample API in umbraco-extension will fail -->
<ItemGroup>
<ProjectReference Include="..\src\Umbraco.Cms.Api.Common\Umbraco.Cms.Api.Common.csproj" />
Expand All @@ -24,9 +24,7 @@
<ItemGroup>
<PackageReference Include="Umbraco.JsonSchema.Extensions" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<Content Update="**\.template.config\template.json" Pack="false" />
</ItemGroup>

<Target Name="GetUpdatedTemplateJsonPackageFiles" BeforeTargets="GenerateNuspec" AfterTargets="GetUmbracoBuildVersion">
<ItemGroup>
<_TemplateJsonFiles Include="**\.template.config\template.json" Exclude="bin\**;obj\**" />
Expand Down Expand Up @@ -64,4 +62,8 @@
<PackagePath>UmbracoProject\Views</PackagePath>
</Content>
</ItemGroup>

<ItemGroup>
<Content Update="**\.template.config\template.json" Pack="false" />
</ItemGroup>
</Project>

0 comments on commit afe9604

Please sign in to comment.