Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup old manifest formats and only issue the developer manifest if…
… there are assets present
  • Loading branch information
javiercn committed Aug 7, 2021
commit 7b7169da7b00a9d32a4ff6bd997db93b23574fb9
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<PropertyGroup>

<!-- For preview only, to ease in the new implementation -->
<_GenerateLegacyManifestFormat>true</_GenerateLegacyManifestFormat>
<_GenerateLegacyManifestFormat>false</_GenerateLegacyManifestFormat>

<PrepareForRunDependsOn>StaticWebAssetsPrepareForRun;$(PrepareForRunDependsOn)</PrepareForRunDependsOn>

Expand Down Expand Up @@ -399,13 +399,7 @@ Copyright (c) .NET Foundation. All rights reserved.

<Target Name="AddStaticWebAssetsManifest" DependsOnTargets="ResolveStaticWebAssetsConfiguration">
<ItemGroup>
<ContentWithTargetPath
Include="$(StaticWebassetBuildManifestPath)"
TargetPath="$(TargetName).staticwebassets.json"
CopyToOutputDirectory="PreserveNewest"
CopyToPublishDirectory="Never" />

<ContentWithTargetPath
<ContentWithTargetPath Condition="@(StaticWebAsset) != ''"
Include="$(StaticWebAssetDevelopmentManifestPath)"
TargetPath="$(TargetName).staticwebassets.runtime.json"
CopyToOutputDirectory="PreserveNewest"
Expand Down Expand Up @@ -446,7 +440,7 @@ Copyright (c) .NET Foundation. All rights reserved.
Assets="@(StaticWebAsset)"
Source="$(PackageId)"
ManifestPath="$(StaticWebAssetDevelopmentManifestPath)">
</GenerateStaticWebAssetsDevelopmentManifest>
</GenerateStaticWebAssetsDevelopmentManifest>

<ItemGroup Condition="'$(_GenerateLegacyManifestFormat)' == 'true'">
<_LegacyContentRootDefinition Include="@(StaticWebAsset)" Condition="'%(SourceType)' != 'Discovered'"></_LegacyContentRootDefinition>
Expand Down