microsoft / XamlBehaviors

This is the official home for UWP XAML Behaviors on GitHub.
MIT License
697 stars 112 forks source link

Cannot enable AllowPartiallyTrustedCallers #151

Open Stannieman opened 5 years ago

Stannieman commented 5 years ago

Hi,

When I put [assembly: AllowPartiallyTrustedCallers] in AssemblyInfo.cs for any project that references the NuGet package for this then that project cannot compile. When I also add [assembly: SecurityRules(SecurityRuleSet.Level1, SkipVerificationInFullTrust = true)] it works again, but IMO setting SecurityRuleSet.Level1 is not the cleanest solution in the long term. There is the same behavior with the old System.Windows.Interactivity.dll.

Can this be checked? It would be nice if it worked cause our solution makes heavy use of AutoMapper and AutoMapper is much faster when [assembly: AllowPartiallyTrustedCallers] is set.