Skip to content

Commit b8d2b27

Browse files
committed
Added AllowUnsafeBlocks where needed.
1 parent 703b227 commit b8d2b27

6 files changed

+8
-2
lines changed

components/DataTable/src/CommunityToolkit.WinUI.Controls.DataTable.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
<!-- Rns suffix is required for namespaces shared across projects. See https://github.com/CommunityToolkit/Labs-Windows/issues/152 -->
88
<RootNamespace>CommunityToolkit.WinUI.Controls.DataTableRns</RootNamespace>
9+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
910
</PropertyGroup>
1011

1112
<!-- Sets this up as a toolkit component's source project -->

components/MarkdownTextBlock/src/CommunityToolkit.WinUI.Controls.MarkdownTextBlock.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<!-- Rns suffix is required for namespaces shared across projects. See https://github.com/CommunityToolkit/Labs-Windows/issues/152 -->
88
<RootNamespace>CommunityToolkit.WinUI.Controls.MarkdownTextBlockRns</RootNamespace>
99
<ImplicitUsings>enable</ImplicitUsings>
10+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1011
</PropertyGroup>
1112

1213
<!-- Sets this up as a toolkit component's source project -->

components/Ribbon/src/CommunityToolkit.WinUI.Controls.Ribbon.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77

88
<!-- Rns suffix is required for namespaces shared across projects. See https://github.com/CommunityToolkit/Labs-Windows/issues/152 -->
99
<RootNamespace>CommunityToolkit.WinUI.Controls.RibbonRns</RootNamespace>
10+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1011
</PropertyGroup>
1112

1213
<!-- Sets this up as a toolkit component's source project -->
1314
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
14-
<ItemGroup>
15-
<UpToDateCheckInput Remove="RibbonStyle.xaml" />
15+
<ItemGroup>
16+
<UpToDateCheckInput Remove="RibbonStyle.xaml" />
1617
</ItemGroup>
1718
</Project>

components/RivePlayer/src/CommunityToolkit.Labs.WinUI.Rive.RivePlayer.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
<!-- Rns suffix is required for namespaces shared across projects. See https://github.com/CommunityToolkit/Labs-Windows/issues/152 -->
88
<RootNamespace>CommunityToolkit.Labs.WinUI.RivePlayerRns</RootNamespace>
9+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
910
</PropertyGroup>
1011

1112
<!-- Sets this up as a toolkit component's source project -->

components/TokenView/src/CommunityToolkit.Labs.WinUI.TokenView.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
<!-- Rns suffix is required for namespaces shared across projects. See https://github.com/CommunityToolkit/Labs-Windows/issues/152 -->
88
<RootNamespace>CommunityToolkit.Labs.WinUI.TokenViewRns</RootNamespace>
9+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
910
</PropertyGroup>
1011

1112
<!-- Sets this up as a toolkit component's source project -->

components/TransitionHelper/src/CommunityToolkit.Labs.WinUI.TransitionHelper.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<!-- TODO: Putting here as seems to get flagged on different partials, need to deal with TokenSource being disposible -->
1111
<!-- See: https://github.com/CommunityToolkit/Labs-Windows/issues/407 -->
1212
<NoWarn>$(NoWarn);CA1001</NoWarn>
13+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1314
</PropertyGroup>
1415

1516
<!-- Sets this up as a toolkit component's source project -->

0 commit comments

Comments
 (0)