Skip to content

Commit

Permalink
Add System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers in a … (
Browse files Browse the repository at this point in the history
…#399)

* Add System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers  in a couple more places

* Mark 'Bogus' as a root assembly in the contact book sample
  • Loading branch information
Numpsy committed Mar 11, 2024
1 parent 1d562ee commit 7a0f14a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Avalonia.FuncUI/Types.fs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace rec Avalonia.FuncUI
namespace Avalonia.FuncUI

open Avalonia
open Avalonia.Controls
open System
open System.Threading
open Avalonia.Data
open System.Diagnostics.CodeAnalysis

module Types =
module rec Types =

[<CustomEquality; NoComparison; Struct>]
type PropertyAccessor =
Expand Down Expand Up @@ -153,11 +153,11 @@ module Types =
abstract member ConstructorArgs: obj array with get
abstract member Outlet: (AvaloniaObject -> unit) voption with get

type IView<'viewType> =
type IView<[<DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)>]'viewType> =
inherit IView
abstract member Attrs: IAttr<'viewType> list with get

type View<'viewType> =
type View<[<DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)>]'viewType> =
{ ViewType: Type
ViewKey: string voption
Attrs: IAttr<'viewType> list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<ItemGroup>
<PackageReference Include="Bogus" Version="34.0.1" />
<TrimmerRootAssembly Include="Bogus" />
</ItemGroup>

</Project>

0 comments on commit 7a0f14a

Please sign in to comment.