Skip to content

Commit 5cb5954

Browse files
authored
Updated the default namespace for new components (#394)
* Updated default root namespace and PackageId * Doc fix * Renamed template csproj * Move PackageId prefix to property in Directory.Build.props * Moved code / docs to new default namespace * Use xmlns:controls instead of xmlns:labs * Use xmlns:controls instead of xmlns:labs * Fixed xaml styling * Removed default component namespace from global usings * Unify default package ID * Fixed missing using directive * Fixed missing using directive
1 parent a2df940 commit 5cb5954

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

GlobalUsings_WinUI.cs

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
global using System.Runtime.InteropServices.WindowsRuntime;
99

10-
global using CommunityToolkit.Labs.WinUI;
11-
1210
global using Windows.Foundation;
1311
global using Windows.Foundation.Collections;
1412

ToolkitComponent.SourceProject.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<Import Project="$(RepositoryDirectory)common\MultiTarget\MultiTarget.props" />
1111

1212
<PropertyGroup>
13-
<PackageId Condition="'$(PackageId)' == ''">CommunityToolkit.Labs.$(PackageIdVariant).$(ToolkitComponentName)</PackageId>
13+
<PackageId Condition="'$(PackageId)' == ''">$(PackageIdPrefix).$(PackageIdVariant).$(ToolkitComponentName)</PackageId>
1414
</PropertyGroup>
1515

1616
<!-- XAML Pages are automatically included, and don't need to be specified here. -->

0 commit comments

Comments
 (0)