Skip to content

Commit 72514a2

Browse files
committed
Include dll in WinUI3 package
1 parent cf8d114 commit 72514a2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Auth.UI.WinUI3/Auth.UI.WinUI3.csproj

+13
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,24 @@ The library provides a drop-in auth solution that handles the flows for signing
2727
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2828
<PackageId>FirebaseAuthentication.WinUI3</PackageId>
2929
<EnableMsixTooling>true</EnableMsixTooling>
30+
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
3031
</PropertyGroup>
3132
<ItemGroup>
3233
<None Remove="WebAuthenticationBrokerWindow.xaml" />
3334
</ItemGroup>
3435

36+
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
37+
<ItemGroup>
38+
<!-- Filter out unnecessary files -->
39+
<_ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))"/>
40+
</ItemGroup>
41+
42+
<ItemGroup>
43+
<!-- Add file to package with consideration of sub folder. If empty, the root folder is chosen. -->
44+
<BuildOutputInPackage Include="@(_ReferenceCopyLocalPaths)" TargetPath="%(_ReferenceCopyLocalPaths.DestinationSubDirectory)"/>
45+
</ItemGroup>
46+
</Target>
47+
3548
<ItemGroup>
3649
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230602002" />
3750
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />

0 commit comments

Comments
 (0)