Skip to content

Commit 718cbff

Browse files
committed
Enable IntelliSense Support for Nuget Package
1 parent 37550d0 commit 718cbff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dev/DevWinUI.Controls/DevWinUI.Controls.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
Experience WinUI 3 quickly and easily with the help of DevWinUI.Controls, Everything you need to develop an application is gathered in one place. DevWinUI.Controls Includes custom controls, styles, landingPages,Compositions and win2d.
88
</Description>
99
<PackageTags>winui winui3 win11 xaml DevWinUI DevWinUI.Controls SettingsUI Components settings theme styles projectreunion winappsdk windowsappsdk wasdk reunion SettingsControls settingsexpander settingscard landingPages win2d composition</PackageTags>
10+
<!-- Remove trailing .0 from Windows TFM -->
11+
<CleanTargetFramework>$([System.Text.RegularExpressions.Regex]::Replace('$(TargetFramework)','\.0$',''))</CleanTargetFramework>
12+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackCustomContent</TargetsForTfmSpecificContentInPackage>
1013
</PropertyGroup>
14+
1115
<ItemGroup>
1216
<PackageReference Include="Microsoft.Graphics.Win2D" Version="$(Win2dVersion)" />
1317
<PackageReference Include="XAMLTools.MSBuild" Version="$(XAMLToolsVersion)">
@@ -42,4 +46,12 @@
4246
<ItemGroup>
4347
<ProjectReference Include="..\DevWinUI\DevWinUI.csproj" />
4448
</ItemGroup>
49+
50+
<Target Name="PackCustomContent">
51+
<ItemGroup>
52+
<TfmSpecificPackageFile Include="Themes\Generic.xaml">
53+
<PackagePath>lib\$(CleanTargetFramework)\DevWinUI.Controls\Themes\</PackagePath>
54+
</TfmSpecificPackageFile>
55+
</ItemGroup>
56+
</Target>
4557
</Project>

0 commit comments

Comments
 (0)