100 Commits
Author SHA1 Message Date
Sergio PedriandGitHub 96517eace8 Merge pull request #359 from CommunityToolkit/dev/fix-linker-pragma-suppressions
Replace linker suppressions with attributes
2022-08-03 09:18:09 -07:00
Sergio Pedri 321fc508a6 Switch __ObservableValidatorHelper to [UnconditionalSuppressMessage] 2022-08-02 19:18:52 +02:00
Sergio Pedri c80930f166 Add UnconditionalSuppressMessageAttribute polyfill 2022-08-02 19:18:52 +02:00
Sergio Pedri 3abc8a9dcb Replace linker suppressions with attributes 2022-08-02 19:00:14 +02:00
Sergio PedriandGitHub 8528092ed2 Merge pull request #266 from OronDF343/add-memorystream-copytoasync
Asynchronous implementation of `MemorySource<TSource>.CopyToAsync`
2022-07-06 15:08:52 +02:00
Sergio PedriandGitHub 43bafc5be2 Merge pull request #326 from CommunityToolkit/dev/add-diagnostics-links
Add aka.ms links to MVVM generator diagnostics
2022-07-06 15:05:45 +02:00
Sergio Pedri aea7e88a48 Add aka.ms links to MVVM generator diagnostics 2022-06-28 12:26:22 +02:00
Sergio PedriandGitHub d3250b6f78 Merge pull request #302 from CommunityToolkit/dev/fix-command-canexecute-nullability
Fix [RelayCommand] CanExecute when nullable arguments are used
2022-06-23 16:55:38 +02:00
Sergio PedriandGitHub 08bf8998fc Merge pull request #301 from CommunityToolkit/dev/relay-command-argument-exceptions
Improve exceptions for invalid command arguments
2022-06-23 16:54:23 +02:00
Sergio PedriandGitHub 90f1db20ab Merge pull request #321 from CommunityToolkit/dev/fix-targets-conflicts
Add unique prefixes to all .targets properties and items
2022-06-22 19:55:03 +02:00
Sergio Pedri 86aaa9953d Remove "_" prefixes from .targets elements 2022-06-22 16:00:35 +02:00
Sergio Pedri 77776099bd Add unique prefixes to all .targets properties and items 2022-06-21 16:40:04 +02:00
Sergio Pedri bfa9e1c923 Add unit tests for command ArgumentException-s 2022-06-13 17:54:20 +02:00
Sergio Pedri 56b5fe4a7b Add ArgumentException-s for invalid command arguments 2022-06-13 17:54:20 +02:00
Sergio Pedri 01e78f5c54 Add unit tests for [RelayCommand] with nullable arguments 2022-06-13 17:54:01 +02:00
Sergio Pedri 6920dabf9f Fix [RelayCommand] CanExecute matching with nullability 2022-06-13 17:54:01 +02:00
Sergio Pedri a2c93139ba Fix typo in a MVVM Toolkit diagnostic description 2022-06-13 17:53:34 +02:00
Sergio PedriandGitHub 7fdc18e35b Merge pull request #309 from CommunityToolkit/dev/fix-fields-this-qualifier
Add "this." prefix to all field accesses
2022-06-13 17:51:45 +02:00
Sergio Pedri 03644c981e Temporarily switch modifier preference to silent
Needs https://github.com/dotnet/roslyn/issues/52904 to be fixed
2022-06-12 14:22:11 +02:00
Sergio Pedri 5591ddb9ff Minor style tweaks 2022-06-12 14:21:47 +02:00
Sergio PedriandGitHub a872a43a8f Merge pull request #310 from CommunityToolkit/dev/add-missing-trimming-annotations
Add missing trimming annotations
2022-06-11 19:19:04 +02:00
Sergio Pedri 786ba0b5d4 Rename fields still using _lowerCamelCase names 2022-06-11 16:50:29 +02:00
Sergio Pedri 58aa6a7281 Add missing trimming annotations 2022-06-11 16:31:24 +02:00
Sergio Pedri 6972de2fee Add "this." prefix to all field accesses 2022-06-11 16:28:44 +02:00
Sergio Pedri 464e331149 Update System.Memory NuGet package to 4.5.5 2022-06-07 11:48:09 +02:00
Sergio PedriandGitHub a231298a21 Merge pull request #290 from CommunityToolkit/dev/update-assembly-metadata
Update Company and Authors metadata items
2022-06-07 11:46:06 +02:00
Sergio PedriandGitHub de561c955f Merge pull request #292 from CommunityToolkit/dev/async-command-options
Add FlowExceptionsToTaskScheduler command option
2022-06-07 11:45:11 +02:00
Sergio Pedri 612055be6f Add async void notes in AsyncRelayCommand 2022-06-07 11:09:11 +02:00
Sergio Pedri 5a0c5ee6d9 Add two missing ConfigureAwait(false) calls 2022-06-06 15:18:41 +02:00
Sergio Pedri fdda4c6bb0 Add more unit tests for synchronous exceptions 2022-06-04 16:37:33 +02:00
Sergio Pedri 923d479bbf Add unit tests for exception flow generator option 2022-06-04 16:37:32 +02:00
Sergio Pedri 0d7ec7a24e Add FlowExceptionsToTaskScheduler generator support 2022-06-04 16:37:32 +02:00
Sergio Pedri 799558c27a Add unit tests for throwing async commands 2022-06-04 16:37:32 +02:00
Sergio Pedri dba9c4163e Implement FlowExceptionsToTaskScheduler option 2022-06-04 15:20:30 +02:00
Sergio Pedri 79204ab489 Switch async command types to use AsyncRelayCommandOptions 2022-06-04 15:20:30 +02:00
Sergio Pedri 6d73083bf8 Add AsyncRelayCommandOptions enum 2022-06-04 15:20:30 +02:00
Sergio PedriandGitHub 69419e7acf Merge pull request #288 from CommunityToolkit/dev/revamp-attributes
Rename attributes, enable class-level support
2022-06-04 13:53:07 +02:00
Sergio PedriandGitHub a12f5f28ac Merge pull request #289 from InKahootz/strongname-sign-assemblies
Strong-name sign assemblies
2022-06-04 01:34:45 +02:00
Sergio Pedri 292bf3497d Update Company and Authors metadata items 2022-06-02 19:04:48 +02:00
Sergio PedriandGitHub da97424acd Minor formatting tweaks to the readme 2022-06-02 18:56:35 +02:00
Sergio Pedri 25a213bcd0 Rename [ICommand] to [RelayCommand] 2022-06-02 01:40:58 +02:00
Sergio Pedri 0267515b9d Rename [NotifyRecipients] to [NotifyPropertyChangedRecipients] 2022-06-01 23:26:55 +02:00
Sergio Pedri 32285a10e9 Add warning for unnecessary [NotifyDataErrorInfo] attribute 2022-06-01 23:26:54 +02:00
Sergio Pedri 0594506c2a Add warning for unnecessary [NotifyRecipients] attribute 2022-06-01 23:26:54 +02:00
Sergio Pedri 4a3f919f71 Add unit test for inheriting [INotifyDataErrorInfo] 2022-06-01 23:26:54 +02:00
Sergio Pedri 69ddcfd8bb Add test case for inheriting multiple class-level attributes 2022-06-01 23:26:54 +02:00
Sergio Pedri 6af95b5e03 Add tests for class-level attributes 2022-06-01 23:26:54 +02:00
Sergio Pedri 4d8630b480 Enable diagnostics for class-level recipient/validation attributes 2022-06-01 23:26:54 +02:00
Sergio Pedri 139068f297 Enable class-level [NotifyDataErrorInfo] usage 2022-06-01 23:26:53 +02:00
Sergio Pedri 0f0d7bb847 Enable class-level [NotifyRecipients] usage 2022-06-01 23:26:53 +02:00
Sergio Pedri 52e5ebfd18 Rename [NotifyRecipients] attribute 2022-06-01 23:26:53 +02:00
Sergio Pedri 29f94a4ce7 Rename [NotifyDataErrorInfo] attribute 2022-06-01 23:26:53 +02:00
Sergio Pedri 91a7798e42 Rename [NotifyCanExecuteChangedFor] attribute 2022-06-01 23:26:52 +02:00
Sergio Pedri e7527d79b4 Rename [NotifyPropertyChangedFor] attribute 2022-06-01 23:26:52 +02:00
Sergio PedriandGitHub 157436d259 Merge pull request #275 from CommunityToolkit/dev/improve-command-generator-with-inheritance
Fix ICommand generator with inherited CanExecute members
2022-06-01 22:48:57 +02:00
Sergio Pedri 138f67d3a4 Fix ICommand generator with inherited CanExecute members 2022-06-01 22:26:45 +02:00
Sergio PedriandGitHub f1f253e760 Merge pull request #285 from CommunityToolkit/dev/icommand-nullability-annotations
Properly forward nullability annotations for [ICommand]
2022-06-01 22:25:48 +02:00
Sergio PedriandGitHub 36a3b82077 Merge pull request #276 from CommunityToolkit/dev/fix-generators-in-root-namespace
Fix source generators for types in global namespace
2022-06-01 22:25:15 +02:00
Sergio PedriandGitHub 8742886a0d Merge pull request #277 from CommunityToolkit/dev/duplicate-base-icommand-diagnostics
Add diagnostic for duplicate ICommand-s in base types
2022-06-01 22:11:27 +02:00
Sergio Pedri 9560e3fef2 Properly forward nullability annotations for [ICommand] 2022-06-01 22:10:43 +02:00
Sergio PedriandGitHub 95c30fa366 Merge pull request #278 from CommunityToolkit/dev/restore-mvvm-trim-analyzer
Enable trim analyzers in MVVM Toolkit again
2022-06-01 22:09:09 +02:00
Sergio Pedri d429e0327b Fix source generators for types in global namespace 2022-06-01 22:08:12 +02:00
Sergio PedriandGitHub 2c5bf9c14a Merge pull request #279 from CommunityToolkit/dev/command-on-prefix
Add support for "On" prefix for command methods
2022-06-01 22:06:35 +02:00
Sergio PedriandGitHub 77b39b630b Merge pull request #284 from CommunityToolkit/dev/use-g-cs-generated-extension
Use ".g.cs" extension for all generated files
2022-06-01 22:06:12 +02:00
Sergio PedriandGitHub cbafd7201c Merge pull request #267 from CommunityToolkit/dev/validation-attribute-improvements
Add [AlsoValidateProperty] attribute
2022-05-31 12:51:53 +02:00
Sergio Pedri 0b15992b66 Add unit test for [AlsoValidateProperty] 2022-05-31 12:32:48 +02:00
Sergio Pedri 31918450ef Improve diagnostics, add unit tests 2022-05-31 12:32:48 +02:00
Sergio Pedri 171b89b0f0 Enable AlsoValidatePropertyAttribute generation 2022-05-31 12:32:48 +02:00
Sergio Pedri 488a7628f3 Add AlsoValidatePropertyAttribute type 2022-05-31 12:32:48 +02:00
Sergio Pedri e202a554e7 Forward all DataAnnotations attribute for [ObservableProperty] 2022-05-31 12:32:47 +02:00
Sergio Pedri 8157b745bc Use ".g.cs" extension for all generated files 2022-05-30 18:25:04 +02:00
Sergio PedriandGitHub 7efbb553ee Merge pull request #281 from CommunityToolkit/dev/remove-generator-temp-strings
Remove temporary strings in source generators formatting
2022-05-30 18:06:18 +02:00
Sergio Pedri a6b72dd6e3 Remove ToFullString() to setup [ObservableRecipient] constructors 2022-05-28 13:32:57 +02:00
Sergio Pedri 4b825ad126 Replace ToFullStrin() with GetText(Encoding) 2022-05-28 13:28:11 +02:00
Sergio Pedri 8a9fc91b5b Add support for "On" prefix for command methods 2022-05-27 16:05:30 +02:00
Sergio Pedri 5e218b761d Enable trim analyzers in MVVM Toolkit again 2022-05-27 14:39:09 +02:00
Sergio Pedri 49201619c8 Add diagnostic for duplicate ICommand-s in base types 2022-05-27 14:17:29 +02:00
Sergio PedriandGitHub d4a8971ff6 Merge pull request #237 from danielbanda/Typos
Typos
2022-05-25 20:12:29 +02:00
Sergio PedriandGitHub d299dfdbdc Merge pull request #258 from CommunityToolkit/dev/fix-observableproperty-inherited-canexecute
Fix [ICommand] CanExecute with inherited generated property
2022-05-24 10:42:36 -07:00
Sergio PedriandGitHub 82566630d0 Merge pull request #261 from CommunityToolkit/dev/fix-build-errors-generic-generation-targets
Fix build errors with generic generation target types
2022-05-24 01:57:56 -07:00
Sergio Pedri db831fc34f Fix build error with generic ObservableValidator types 2022-05-24 09:54:51 +02:00
Sergio Pedri 59d92997ca Fix build error with generic IRecipient<T> types
This just uses the compiled LINQ expression fallback
2022-05-24 09:53:05 +02:00
Sergio PedriandGitHub 83d4ee2138 Merge pull request #260 from CommunityToolkit/dev/disable-generation-for-abstracts
Disable source generators for abstract types
2022-05-24 00:50:31 -07:00
Sergio Pedri d61796f1c7 Add unit tests for abstract source generation targets 2022-05-21 14:06:43 +02:00
Sergio Pedri 54baa39370 Disable validation/recipient generator for abstract types 2022-05-21 14:06:27 +02:00
Sergio Pedri 6af97af3ee Fix [ICommand] CanExecute with inherited generated property 2022-05-20 14:22:28 +02:00
Sergio PedriandGitHub b8db4b082e Merge pull request #248 from CommunityToolkit/dev/block-conflicting-generated-properties
Block [ObservableProperty] on properties causing conflicts
2022-05-13 14:53:13 +02:00
Sergio PedriandGitHub 0fb704d602 Merge pull request #250 from CommunityToolkit/dev/display-attribute-breaking-broadcast
Fix [AlsoBroadcastChange] not working when followed by other attributes
2022-05-13 14:52:47 +02:00
Sergio Pedri 612a6eaf20 Fix [AlsoBroadcastChange] breaking before other attributes 2022-05-10 15:53:21 +02:00
Sergio Pedri 27fd6c38f2 Add unit tests for [Display] breaking [AlsoBroadcastChange] 2022-05-10 15:41:05 +02:00
Sergio PedriandGitHub 73e85b44a7 Merge pull request #249 from CommunityToolkit/dev/culture-invariant-generators
Make source generators culture invariant
2022-05-10 14:03:49 +02:00
Sergio Pedri 9f951c2cf0 Make source generators culture invariant 2022-05-09 21:44:12 +02:00
Sergio Pedri 914f31d99b Add unit tests for blocked generated properties 2022-05-09 21:13:37 +02:00
Sergio Pedri 780b596f22 Add new checks and diagnostics for properties causing conflicts 2022-05-09 21:13:25 +02:00
Sergio PedriandGitHub df07309b50 Merge pull request #247 from CommunityToolkit/dev/remove-attributes-conditional
Remove [Conditional] from MVVM Toolkit attributes
2022-05-09 16:24:59 +02:00
Sergio Pedri 414c8375a3 Add unit test for base viewmodel in separate assembly 2022-05-09 16:11:44 +02:00
Sergio Pedri b52b427058 Remove [Conditional] from MVVM Toolkit attributes 2022-05-09 16:11:44 +02:00
Sergio Pedri d1f7c051aa Resolve some build warnings 2022-05-09 15:58:40 +02:00
Sergio Pedri f92fef7137 Add more unit tests for generics with [ObservableProperty]
This covers all cases from #224 as well.
2022-05-09 15:58:40 +02:00
Sergio PedriandGitHub a0f0b03eb5 Merge pull request #236 from CommunityToolkit/dev/observable-validator-partial-declarations
Fix ObservableValidator duplicate generated partial declarations
2022-05-09 15:18:37 +02:00