File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/StaticWebAssetsSdk/Targets Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -717,10 +717,23 @@ Copyright (c) .NET Foundation. All rights reserved.
717
717
<Output TaskParameter =" OriginalAssets" ItemName =" _OriginalPackageAssets" />
718
718
</UpdatePackageStaticWebAssets >
719
719
720
+ <ItemGroup >
721
+ <_AssetsWithoutEndpoints Include =" @(_UpdatedPackageAssets)" Exclude =" @(StaticWebAssetEndpoint->'%(AssetFile)')" />
722
+ </ItemGroup >
723
+
724
+ <DefineStaticWebAssetEndpoints
725
+ CandidateAssets =" @(_AssetsWithoutEndpoints)"
726
+ ContentTypeMappings =" @(StaticWebAssetContentTypeMapping)"
727
+ >
728
+ <Output TaskParameter =" Endpoints" ItemName =" _UpdatedPackageAssetsEndpoint" />
729
+ </DefineStaticWebAssetEndpoints >
730
+
720
731
<ItemGroup >
721
732
<StaticWebAsset Remove =" @(_OriginalPackageAssets)" />
722
733
<StaticWebAsset Include =" @(_UpdatedPackageAssets)" />
734
+ <StaticWebAssetEndpoint Include =" @(_UpdatedPackageAssetsEndpoint)" />
723
735
</ItemGroup >
736
+
724
737
</Target >
725
738
726
739
<Import Project =" Microsoft.NET.Sdk.StaticWebAssets.Publish.targets" />
You can’t perform that action at this time.
0 commit comments