-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into darc-main-4def985b-323a-4bc9-81dc-c5c9ebfd4bd7
- Loading branch information
Showing
16 changed files
with
1,160 additions
and
879 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
src/StaticWebAssetsSdk/Targets/Microsoft.NET.Sdk.StaticWebAssets.Design.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<CollectUpToDateCheckInputDesignTimeDependsOn> | ||
$(CollectUpToDateCheckInputDesignTimeDependsOn); | ||
ResolveStaticWebAssetsConfiguration; | ||
ResolveProjectStaticWebAssets; | ||
CollectStaticWebAssetInputsDesignTime; | ||
</CollectUpToDateCheckInputDesignTimeDependsOn> | ||
<CollectUpToDateCheckOutputDesignTimeDependsOn> | ||
$(CollectUpToDateCheckOutputDesignTimeDependsOn); | ||
ResolveStaticWebAssetsConfiguration; | ||
CollectStaticWebAssetOutputsDesignTime; | ||
</CollectUpToDateCheckOutputDesignTimeDependsOn> | ||
</PropertyGroup> | ||
|
||
<Target Name="CollectStaticWebAssetInputsDesignTime"> | ||
|
||
<ReadLinesFromFile | ||
File="$(StaticWebAssetUpToDateCheckManifestPath)" | ||
Condition="Exists('$(StaticWebAssetUpToDateCheckManifestPath)')" | ||
> | ||
<Output TaskParameter="Lines" ItemName="_StaticWebAssetUpToDateCheckInput" /> | ||
</ReadLinesFromFile> | ||
|
||
<ReadLinesFromFile | ||
File="$(StaticWebAssetReferencesUpToDateCheckManifestPath)" | ||
Condition="Exists('$(StaticWebAssetReferencesUpToDateCheckManifestPath)')" | ||
> | ||
<Output TaskParameter="Lines" ItemName="_StaticWebAssetReferenceUpToDateCheckInput" /> | ||
</ReadLinesFromFile> | ||
|
||
<ItemGroup> | ||
<_UpToDateCheckStaticWebAssetResolved Include="@(StaticWebAsset)" Condition="'%(SourceType)' == 'Discovered'" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<_UpToDateCheckStaticWebAssetResolvedCandidate Include="@(_UpToDateCheckStaticWebAssetResolved->'%(OriginalItemSpec)')" /> | ||
<_StaticWebAssetUpToDateCheckInput Include="@(_UpToDateCheckStaticWebAssetResolvedCandidate->Distinct()->'%(FullPath)')" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<_ExistingStaticWebAssetUpToDateCheckInput Include="%(_StaticWebAssetUpToDateCheckInput.FullPath)" Condition="Exists('%(_StaticWebAssetUpToDateCheckInput.FullPath)')" /> | ||
<_NonExistingStaticWebAssetUpToDateCheckInput Include="%(_StaticWebAssetUpToDateCheckInput.FullPath)" Condition="!Exists('%(_StaticWebAssetUpToDateCheckInput.FullPath)')" /> | ||
</ItemGroup> | ||
|
||
<WriteLinesToFile | ||
File="$(StaticWebAssetUpToDateCheckRemovedManifestPath)" | ||
Lines="@(_NonExistingStaticWebAssetUpToDateCheckInput)" | ||
Overwrite="true" | ||
WriteOnlyWhenDifferent="true" /> | ||
|
||
<ItemGroup> | ||
<UpToDateCheckInput Condition="'@(_NonExistingStaticWebAssetUpToDateCheckInput)' != ''" Include="$(StaticWebAssetUpToDateCheckRemovedManifestPath)" Set="StaticWebAssets" /> | ||
<UpToDateCheckInput Include="@(_ExistingStaticWebAssetUpToDateCheckInput)" Set="StaticWebAssets" /> | ||
<UpToDateCheckInput Include="@(_StaticWebAssetReferenceUpToDateCheckInput)" Set="StaticWebAssets" /> | ||
</ItemGroup> | ||
|
||
</Target> | ||
|
||
<Target Name="CollectStaticWebAssetOutputsDesignTime"> | ||
|
||
<ItemGroup> | ||
<UpToDateCheckOutput Include="$(StaticWebAssetBuildManifestPath)" Set="StaticWebAssets" /> | ||
</ItemGroup> | ||
|
||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.