Skip to content

Commit

Permalink
Include dll in WinUI3 package
Browse files Browse the repository at this point in the history
  • Loading branch information
bezysoftware committed Sep 7, 2023
1 parent cf8d114 commit 72514a2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Auth.UI.WinUI3/Auth.UI.WinUI3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,24 @@ The library provides a drop-in auth solution that handles the flows for signing
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageId>FirebaseAuthentication.WinUI3</PackageId>
<EnableMsixTooling>true</EnableMsixTooling>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
</PropertyGroup>
<ItemGroup>
<None Remove="WebAuthenticationBrokerWindow.xaml" />
</ItemGroup>

<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
<ItemGroup>
<!-- Filter out unnecessary files -->
<_ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))"/>
</ItemGroup>

<ItemGroup>
<!-- Add file to package with consideration of sub folder. If empty, the root folder is chosen. -->
<BuildOutputInPackage Include="@(_ReferenceCopyLocalPaths)" TargetPath="%(_ReferenceCopyLocalPaths.DestinationSubDirectory)"/>
</ItemGroup>
</Target>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230602002" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
Expand Down

0 comments on commit 72514a2

Please sign in to comment.