Commit Graph
2008 Commits
Author SHA1 Message Date
Sergio Pedri 4e43f2901e Fix Roslyn multi-targeting and testing 2022-09-12 21:21:26 +02:00
Sergio Pedri 1e1ba013e8 Use ForAttributeWithMetadataName whenever possible 2022-09-10 18:39:38 +02:00
Sergio Pedri 3bb80e7223 Add polyfills for ForAttributeWithMetadataName 2022-09-10 18:39:38 +02:00
Sergio Pedri b3b60f4797 Merge pull request #435 from CommunityToolkit/dev/no-symbols-ivp
Don't use ISymbol in IncrementalValuesProvider<T> nodes
2022-09-10 14:34:43 +02:00
Sergio Pedri b6dd39b4d1 Improve syntactical filtering for messaging/validator generators 2022-09-10 14:12:23 +02:00
Sergio Pedri 27cd6b47a6 Don't propagate symbols in TransitiveMembersGenerator 2022-09-10 14:12:23 +02:00
Sergio Pedri 5f90862efc Don't propagate symbols in ObservableValidatorValidateAllPropertiesGenerator 2022-09-10 03:31:39 +02:00
Sergio Pedri f1f3f9c6c6 Don't propagate symbols in ObservablePropertyGenerator 2022-09-10 03:27:09 +02:00
Sergio Pedri 73ebfb5269 Don't propagate symbols in IMessengerRegisterAllGenerator 2022-09-10 03:09:13 +02:00
Sergio Pedri bf98ede74c Don't propagate symbols in RelayCommandGenerator 2022-09-10 03:08:36 +02:00
Sergio Pedri 5876242950 Merge pull request #434 from CommunityToolkit/dev/orphaned-fields-analyzer
Move diagnostics for orphaned observable property attributes to analyzer
2022-09-10 03:05:12 +02:00
Sergio Pedri b8749fe544 Switch orphaned fields diagnostics to analyzer 2022-09-10 02:48:36 +02:00
Sergio Pedri 94db183386 Add FieldWithOrphanedDependentObservablePropertyAttributesAnalyzer 2022-09-10 02:48:36 +02:00
Sergio Pedri 82ccd6c0db Merge pull request #433 from CommunityToolkit/dev/language-filter-analyzer
Move language diagnostics to diagnostic analyzers
2022-09-10 02:04:11 +02:00
Sergio Pedri 57832d14ec Fix Roslyn 4.0.1 unit test runs in CI script 2022-09-10 01:40:34 +02:00
Sergio Pedri f3cbf78bf4 Adjust analyzer diagnostics unit tests to work on all TFMs 2022-09-10 01:38:05 +02:00
Sergio Pedri 31745cb1c3 Update generator/analyzer diagnostics unit tests 2022-09-10 00:10:41 +02:00
Sergio Pedri 34867232d6 Don't emit repeated diagnostics for same symbols 2022-09-10 00:10:28 +02:00
Sergio Pedri 408ac01508 Disable IMessenger and ObservableValidator when not on C# 8 2022-09-10 00:10:14 +02:00
Sergio Pedri 0a331c1da2 Defer UnsupportedCSharpLanguageVersionAnalyzer symbol action registration 2022-09-09 18:18:22 +02:00
Sergio Pedri 57055d7ca8 Add CSharpAnalyzerWithLanguageVersionTest<TAnalyzer> test helper 2022-09-09 16:09:50 +02:00
Sergio Pedri e4ed10bcc3 Fix condition in UnsupportedCSharpLanguageVersionAnalyzer 2022-09-09 16:09:20 +02:00
Sergio Pedri 80625ef8f9 Remove FilterWithLanguageVersion method 2022-09-09 14:20:37 +02:00
Sergio Pedri f9e63fb09b Check parse options in UnsupportedCSharpLanguageVersionAnalyzer 2022-09-09 13:43:02 +02:00
Sergio Pedri 74fc2aae75 Add draft UnsupportedCSharpLanguageVersionAnalyzer 2022-09-09 13:31:45 +02:00
Sergio Pedri 5be269e5ea Merge pull request #428 from CommunityToolkit/dev/roslyn-multi-targeting
Multi-target Roslyn dependency in MVVM Toolkit generators
2022-09-09 12:49:43 +02:00
Sergio Pedri 4fae4dded9 Merge pull request #398 from zhuman/fix_cslang_80
Fix for using C# 8.0 projects (e.g. UWP projects stuck on .NET Core 3)
2022-09-08 23:59:53 +02:00
Sergio Pedri 9b7d8710c6 Fix unit tests for generators
These two generators should never cause a build error
2022-09-08 23:41:31 +02:00
Sergio Pedri 7723c1e093 Code style tweaks 2022-09-08 23:26:43 +02:00
Sergio Pedri f577ec0347 Only set OutputPath in generators during packing 2022-09-08 19:36:43 +02:00
Sergio Pedri 514710b111 Run multi-targeted Roslyn projects in CI 2022-09-08 19:36:43 +02:00
Sergio Pedri b661cb7f91 Enable multi-targeting Roslyn for unit test projects 2022-09-08 19:36:43 +02:00
Sergio Pedri bb4e41ee32 Merge pull request #394 from heku/correct_type_in_converters
Correct typo in converters
2022-09-08 19:12:27 +02:00
Sergio Pedri 7bd28e4eb1 Enable Roslyn multi-targeting in the MVVM Toolkit generator 2022-09-08 02:15:41 +02:00
Zachary Northrup 61e9e4792d Update source generator tests to actually generate the compiled output, update tests to use the minimum supported C# language version (8.0), and also validate that unsupported version cases actually succeed with the supported version 2022-08-23 19:11:22 -07:00
Zachary Northrup 31e712f64d Fix ObservableValidatorValidateAllPropertiesGenerator and IMessengerRegisterAllGenerator to provide a nicer "unsupported C# language version" diagnostic instead of simply generating unsupported code and failing later in compilation 2022-08-23 19:09:39 -07:00
Zachary Northrup a47ce3b14b Fix for using C# 8.0 projects (e.g. UWP projects stuck on .NET Core 3) - fixes #376 2022-08-23 16:52:38 -07:00
heku 74e24d6b43 Correct a typo in Converters.ToFileSizeString and add unit tests 2022-08-20 23:45:23 +08:00
heku 19aa269c89 Code cleanup 2022-08-20 23:27:52 +08:00
Michael Hawker MSFT (XAML Llama) 9d1a525d04 Update readme for 8.0.0 release branch 2022-08-18 14:48:41 -07:00
Sergio Pedri 96517eace8 Merge pull request #359 from CommunityToolkit/dev/fix-linker-pragma-suppressions
Replace linker suppressions with attributes
v8.0.0
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 Pedri 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 Pedri 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 Pedri 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 Pedri 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 Pedri 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