Skip to content

Commit

Permalink
Fix package definition
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercn committed Nov 13, 2024
1 parent 9b0c831 commit d56da4c
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions src/Identity/UI/src/Microsoft.AspNetCore.Identity.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,26 @@
</V5AssetsCandidates>
</ItemGroup>

<DefineStaticWebAssets Condition="'@(V4AssetsCandidates->Count())' != '0'" CandidateAssets="@(V4AssetsCandidates)" SourceId="$(PackageId)" SourceType="Discovered" AssetKind="All" ContentRoot="assets/V4" BasePath="$(StaticWebAssetBasePath)">
<DefineStaticWebAssets
Condition="'@(V4AssetsCandidates->Count())' != '0'"
CandidateAssets="@(V4AssetsCandidates)" SourceId="$(PackageId)"
SourceType="Package"
AssetKind="All"
ContentRoot="assets/V4"
BasePath="$(StaticWebAssetBasePath)"
>
<Output TaskParameter="Assets" ItemName="V4Assets" />
</DefineStaticWebAssets>
<DefineStaticWebAssets Condition="'@(V5AssetsCandidates->Count())' != '0'" CandidateAssets="@(V5AssetsCandidates)" SourceId="$(PackageId)" SourceType="Discovered" AssetKind="All" ContentRoot="assets/V5" BasePath="$(StaticWebAssetBasePath)">

<DefineStaticWebAssets
Condition="'@(V5AssetsCandidates->Count())' != '0'"
CandidateAssets="@(V5AssetsCandidates)"
SourceId="$(PackageId)"
SourceType="Package"
AssetKind="All"
ContentRoot="assets/V5"
BasePath="$(StaticWebAssetBasePath)"
>
<Output TaskParameter="Assets" ItemName="V5Assets" />
</DefineStaticWebAssets>

Expand All @@ -116,8 +132,17 @@
<Output TaskParameter="Endpoints" ItemName="V5AssetEndpoints" />
</DefineStaticWebAssetEndpoints>

<GenerateStaticWebAssetsPropsFile StaticWebAssets="@(V4Assets)" PackagePathPrefix="staticwebassets/V4" TargetPropsFilePath="$(IntermediateOutputPath)IdentityUI.V4.targets" />
<GenerateStaticWebAssetsPropsFile StaticWebAssets="@(V5Assets)" PackagePathPrefix="staticwebassets/V5" TargetPropsFilePath="$(IntermediateOutputPath)IdentityUI.V5.targets" />
<ItemGroup>
<FinalV4Assets Include="@(V4Assets)">
<SourceType>Discovered</SourceType>
</FinalV4Assets>
<FinalV5Assets Include="@(V5Assets)">
<SourceType>Discovered</SourceType>
</FinalV5Assets>
</ItemGroup>

<GenerateStaticWebAssetsPropsFile StaticWebAssets="@(FinalV4Assets)" PackagePathPrefix="staticwebassets/V4" TargetPropsFilePath="$(IntermediateOutputPath)IdentityUI.V4.targets" />
<GenerateStaticWebAssetsPropsFile StaticWebAssets="@(FinalV5Assets)" PackagePathPrefix="staticwebassets/V5" TargetPropsFilePath="$(IntermediateOutputPath)IdentityUI.V5.targets" />

<GenerateStaticWebAssetEndpointsPropsFile
StaticWebAssets="@(V4Assets)"
Expand Down

0 comments on commit d56da4c

Please sign in to comment.