Skip to content

Commit

Permalink
Exclude globa.json with PublishFolderType=None
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayParikh committed Jul 22, 2022
1 parent ed4c03a commit fa55ac4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<Content Remove="**\*.razor" />
<RazorComponent Include="**\*.razor" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
</ItemGroup>

<ItemGroup>
<Content Update="@(Content)" Condition="'@(Content->FileName)' == 'global' and '@(Content->Extension)' == '.json'" PublishFolderType="None" />
</ItemGroup>

<PropertyGroup>
<StaticWebAssetBasePath>/</StaticWebAssetBasePath>
Expand Down Expand Up @@ -67,8 +71,6 @@
<!-- Add Scoped CSS files in the app to the list of hidden items -->
<_TemporaryHiddenContent Include="Pages\**\*.razor.css" />
<_TemporaryHiddenContent Include="Shared\**\*.razor.css" />
<!-- Add global.json to the list of hidden items -->
<_TemporaryHiddenContent Include="global.json" />
<!-- Temporarily remove the items -->
<Content Remove="@(_TemporaryHiddenContent)" />
</ItemGroup>
Expand Down

0 comments on commit fa55ac4

Please sign in to comment.