Skip to content

Commit

Permalink
Update CsWinRT, enable generators, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Aug 19, 2024
1 parent 52805a8 commit 5895f5e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<IsAotCompatible>true</IsAotCompatible>
<DisableRuntimeMarshalling>true</DisableRuntimeMarshalling>
<CsWinRTAotWarningLevel>2</CsWinRTAotWarningLevel>

<!-- Temporary workaround for a WebView2 bug -->
<WebView2EnableCsWinRTProjectionExcludeCoreRef>true</WebView2EnableCsWinRTProjectionExcludeCoreRef>
Expand Down Expand Up @@ -109,6 +110,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240807006-preview1" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Microsoft.Xaml.Interactivity
/// <summary>
/// Represents a collection of IActions.
/// </summary>
public sealed class ActionCollection : DependencyObjectCollection
public sealed partial class ActionCollection : DependencyObjectCollection
{
/// <summary>
/// Initializes a new instance of the <see cref="ActionCollection"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Microsoft.Xaml.Interactivity
/// <summary>
/// Represents a collection of IBehaviors with a shared <see cref="Microsoft.Xaml.Interactivity.BehaviorCollection.AssociatedObject"/>.
/// </summary>
public sealed class BehaviorCollection : DependencyObjectCollection
public sealed partial class BehaviorCollection : DependencyObjectCollection
{
// After a VectorChanged event we need to compare the current state of the collection
// with the old collection so that we can call Detach on all removed items.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<IsAotCompatible>true</IsAotCompatible>
<DisableRuntimeMarshalling>true</DisableRuntimeMarshalling>
<CsWinRTAotWarningLevel>2</CsWinRTAotWarningLevel>

<!-- Temporary workaround for a WebView2 bug -->
<WebView2EnableCsWinRTProjectionExcludeCoreRef>true</WebView2EnableCsWinRTProjectionExcludeCoreRef>
Expand Down Expand Up @@ -106,6 +107,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.1" PrivateAssets="all" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240807006-preview1" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 5895f5e

Please sign in to comment.