Skip to content

Commit

Permalink
feat: adding implicit namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Mar 19, 2024
1 parent b95758c commit e10ffe3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Uno.Sdk/targets/Uno.Common.targets
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
<Import Project="Uno.Implicit.Packages.targets"
Condition=" $(DisableImplicitUnoPackages) != 'true' AND $(TargetFramework) != '' " />

<Import Project="Uno.Implicit.Namespaces.targets"
Condition=" $(DisableImplicitUnoNamespaces) != 'true' " />

<!-- TFM Specific Targets -->
<Import Project="Uno.Common.Android.targets"
Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' " />
Expand Down
13 changes: 13 additions & 0 deletions src/Uno.Sdk/targets/Uno.Implicit.Namespaces.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project>
<ItemGroup Condition=" '$(ImplicitUsings)' == 'true' OR '$(ImplicitUsings)' == 'enable' ">
<Using Include="System.Windows.Input" Sdk="Uno" />
<Using Include="Windows.Networking.Connectivity" Sdk="Uno" />
<Using Include="Windows.Storage" Sdk="Uno" />
<Using Include="Microsoft.UI.Xaml" Sdk="Uno" />
<Using Include="Microsoft.UI.Xaml.Controls" Sdk="Uno" />
<Using Include="Microsoft.UI.Xaml.Media" Sdk="Uno" />
<Using Include="Microsoft.UI.Xaml.Navigation" Sdk="Uno" />
<Using Include="Uno.UI" Sdk="Uno" />
<Using Include="Windows.ApplicationModel" Sdk="Uno" />
</ItemGroup>
</Project>

0 comments on commit e10ffe3

Please sign in to comment.