Commit Graph
2284 Commits
Author SHA1 Message Date
Sergio Pedri d3d9752364 Merge pull request #90 from CommunityToolkit/version-update
Update base version number to reflect upcoming version
2022-01-13 22:43:12 +01:00
Sergio Pedri 54808964f0 Merge pull request #88 from CommunityToolkit/dev/nuget-reference-updates
Bump NuGet package reference versions
2022-01-13 22:08:28 +01:00
Sergio Pedri bd4f365f01 Bump NuGet package reference versions 2022-01-13 21:53:49 +01:00
Sergio Pedri 2fa3961601 Merge pull request #89 from CommunityToolkit/dev/nullability-attributes-check
Fix conflicting generation of nullability attributes
2022-01-13 21:21:49 +01:00
Sergio Pedri 7d52b58e76 Fix conflicting generation of nullability attributes 2022-01-13 20:30:28 +01:00
Michael Hawker MSFT (XAML Llama) 4702495856 Update to reflect upcoming version 2022-01-13 10:41:27 -08:00
Sergio Pedri af106bf7af Merge pull request #87 from jmarolf/patch-1
Calculate the current C# compiler version
2022-01-13 18:41:32 +01:00
Sergio Pedri 99cf8cb072 Minor code style tweaks, add more XML comments 2022-01-13 18:17:42 +01:00
Jonathon Marolf 914fc275e7 Calculate the current C# compiler version
This change allows us to calculate the current C# compiler version in a way that will work on all platforms and only relies on the `Microsoft.CSharp.CurrentVersion.targets` target (specifically [this line](https://github.com/dotnet/msbuild/blob/main/src/Tasks/Microsoft.CSharp.CurrentVersion.targets#L315)) being imported. `Microsoft.CSharp.CurrentVersion.targets` is the core msbuild logic for finding the C# compiler and is used universally so this fix should work everywhere there is a C# compiler to be found.
2022-01-12 20:51:59 -08:00
Sergio Pedri 0e150d58f3 Merge pull request #78 from CommunityToolkit/dev/guard-unconstrained-generic
Remove class constraint from Guard.Is[Not]Null APIs
2022-01-04 13:55:47 +01:00
Sergio Pedri c096438a4a Add unit tests for new generic combinations 2022-01-04 13:25:00 +01:00
Sergio Pedri 5d7f2a7674 Remove class constraint from Guaard.Is[Not]Null APIs 2022-01-04 13:24:59 +01:00
Sergio Pedri 87268d40b6 Merge pull request #79 from CommunityToolkit/dev/require-preview-features
Add [RequiresPreviewFeatures] to unsafe APIs
2022-01-04 13:24:25 +01:00
Sergio Pedri f8ca8da76a Add [RequiresPreviewFeatures] to unsafe APIs 2022-01-01 20:11:13 +01:00
Sergio Pedri 6f20b2611c Switch attribute property setters to init-only 2022-01-01 19:53:50 +01:00
Sergio Pedri f81cf4b4f9 Switch to target-type new() for direct return values 2022-01-01 17:02:31 +01:00
Sergio Pedri 57f4c3d97d Add [SkipLocalsInit] to missing assemblies 2022-01-01 16:54:47 +01:00
Sergio Pedri ef77d0973d Merge pull request #77 from CommunityToolkit/dev/strip-generator-attributes
Strip source generator attributes by default
2021-12-31 21:56:36 +01:00
Sergio Pedri e31a08890e Add unit tests for attributes stripping 2021-12-31 20:10:50 +01:00
Sergio Pedri 350c2374f5 Strip source generator attributes by default
Define "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" to keep them
2021-12-31 20:10:02 +01:00
Sergio Pedri f7a980e104 Merge pull request #76 from CommunityToolkit/dev/trimming-support
Add trimming support
2021-12-31 20:09:32 +01:00
Sergio Pedri 63abbb051d Fix generated members accessibility for sealed types 2021-12-31 18:06:42 +01:00
Sergio Pedri 704e5073f1 Enable implementing OnActivated/OnDeactivated with [ObservableRecipient] 2021-12-31 17:58:12 +01:00
Sergio Pedri 35d403b945 Fix mixed whitespaces in generated files 2021-12-31 17:32:47 +01:00
Sergio Pedri e12e0858a4 Fix removal of [RequiresUnreferencedCode] on older runtimes 2021-12-31 17:04:10 +01:00
Sergio Pedri cc3205a362 Move RequiresUnreferencedCodeAttribute to correct folder 2021-12-31 16:47:10 +01:00
Sergio Pedri 8e7c48fab1 Move MVVM Toolkit internals tests to separate project 2021-12-31 16:47:10 +01:00
Sergio Pedri af03bdfff0 Remove trimming annoations for [ObservableRecipient] on older runtimes 2021-12-31 16:28:00 +01:00
Sergio Pedri afc7232dc7 Improve custom filtering support in TransitiveMembersGenerator<TInfo> 2021-12-29 20:52:50 +01:00
Sergio Pedri a7e0f2c370 Enable trimming support in the MVVM Toolkit
Also added linker annotations where needed
2021-12-29 19:26:37 +01:00
Sergio Pedri 14c6dc34fb Enable trimming support on all packages except MVVM Toolkit 2021-12-29 19:20:50 +01:00
Sergio Pedri 779cbfe60d Remove unnecessary linker unfriendly path in TypeExtensions 2021-12-29 19:20:50 +01:00
Sergio Pedri 4427b44290 Merge pull request #75 from CommunityToolkit/dev/code-style-tweaks
Minor code style tweaks
2021-12-29 19:20:24 +01:00
Sergio Pedri 62d1245e3c Update .git-blame-ignore-revs 2021-12-29 18:57:15 +01:00
Sergio Pedri cb4e418ad3 Refactor remaining partial type declarations 2021-12-29 18:56:14 +01:00
Sergio Pedri 0693d6c964 Fix leftover file-scoped namespaces 2021-12-29 18:56:14 +01:00
Sergio Pedri e6b4ea354a Fix partial types in Diagnostics package 2021-12-29 18:51:11 +01:00
Sergio Pedri 5309963791 Merge pull request #63 from CommunityToolkit/dev/incremental-generators
Switch source generators to incremental generators
2021-12-29 18:49:52 +01:00
Sergio Pedri 53614e7e3c Add comments to GetFullMetadataNameForFileName 2021-12-29 18:31:48 +01:00
Sergio Pedri f8dcd09581 Remove call to MulticastDelegate.op_Equality 2021-12-29 18:31:48 +01:00
Sergio Pedri 0ae955d297 Add .targets file to disable source generators on Roslyn 3.x
Still a bit experimental, needs more testing and validation
2021-12-29 18:31:48 +01:00
Sergio Pedri 8cdc261997 Remove unnecessary partial class modifier 2021-12-29 18:31:48 +01:00
Sergio Pedri af82fe95ba Fix a small typo in XML docs
This closes #58
2021-12-29 18:31:47 +01:00
Sergio Pedri d01455ecb2 Add unit test for build error reported in #13 2021-12-29 18:31:47 +01:00
Sergio Pedri 64657753a3 Remove leftover internal helpers and adjust visibility 2021-12-29 18:31:47 +01:00
Sergio Pedri 9c581dc531 Add nullable enable directives to generated files 2021-12-29 18:31:12 +01:00
Sergio Pedri aae1cbde84 Add base Comparer<T, TSelf> type 2021-12-29 18:31:11 +01:00
Sergio Pedri 9cc7d41c1e Add FilterWithLanguageVersion extension to gate on language version 2021-12-29 18:31:11 +01:00
Sergio Pedri 13a9149eee Lower C# version requirement to 8 for all generators 2021-12-29 18:31:11 +01:00
Sergio Pedri 6fb377baee Remove cached delegate from ObservableObject 2021-12-29 18:31:11 +01:00