Commit Graph
2063 Commits
Author SHA1 Message Date
Sergio Pedri e2140f238e Merge pull request #461 from CommunityToolkit/dev/messenger-observable
Add IObservable<T> extensions for IMessenger
2022-10-12 03:08:25 -07:00
Sergio Pedri 45795f2d3a Merge pull request #460 from CommunityToolkit/dev/generator-improvements
More MVVM Toolkit generator improvements
2022-10-12 03:07:56 -07:00
Sergio Pedri 66dee36472 Remove Lease type, move logic to declaring type 2022-10-05 21:50:46 +02:00
Sergio Pedri 1bef0462af Use ImmutableArrayBuilder<T> in all generators 2022-10-05 21:50:46 +02:00
Sergio Pedri 8dd1387e00 Add pooled ImmutableArrayBuilder<T> type 2022-10-05 21:50:46 +02:00
Sergio Pedri 1f2d63c716 Remove AttributeInfo array builder use 2022-10-05 21:50:46 +02:00
Sergio Pedri 7f85c37caa Remove unnecessary immutable array builders 2022-10-05 21:50:46 +02:00
Sergio Pedri 539e61780a Port ObjectPool<T> type from Roslyn 2022-10-05 21:50:45 +02:00
Sergio Pedri 525cf042a9 Fix ValidationInfo equality support 2022-10-04 18:20:51 +02:00
Sergio Pedri 2b47469f1f Remove extra projection and comparer from ObservablePropertyGenerator 2022-10-04 18:20:51 +02:00
Sergio Pedri 969fcb4658 Remove extra projection and comparers from command generator 2022-10-04 18:20:51 +02:00
Sergio Pedri ce9b713735 Make Result<TValue> directly equatable 2022-10-04 18:20:51 +02:00
Sergio Pedri c40bf81357 Replace Diagnostic uses with DiagnosticInfo 2022-10-04 18:20:51 +02:00
Sergio Pedri d6bc11f6c4 Port DiagnosticInfo from ComputeSharp 2022-10-04 18:20:51 +02:00
Sergio Pedri eb09343bf1 Remove external comparer for RecipientInfo 2022-10-04 18:20:50 +02:00
Sergio Pedri accfa0bcd6 Add unit tests for messenger observable APIs 2022-10-04 18:20:06 +02:00
Sergio Pedri 88a39c0c43 Add messenger CreateObservable extensions 2022-10-04 18:19:26 +02:00
Sergio Pedri a8fd1db879 Merge pull request #462 from CommunityToolkit/dev/roslyn-431
Remove Roslyn 4.3 workaround, bump to 4.3.1
2022-10-04 09:18:25 -07:00
Sergio Pedri 233c4f2421 Update all Roslyn and test SDKs to latest stable 2022-10-04 13:53:37 +02:00
Sergio Pedri f3977549a6 Remove Roslyn 4.3 workaround, bump to 4.3.1 2022-10-04 12:14:36 +02:00
Sergio Pedri 2b7e06b79d Rename docs.microsoft to learn.microsoft 2022-09-29 14:26:07 +02:00
Sergio Pedri e67754bde4 Merge pull request #452 from Nirmal4G/build/file-header-template
Use EditorConfig to apply file headers
2022-09-28 14:47:16 -07:00
Nirmal Guru 720e8b86e7 Update a file with file header to fix Build
- Previous Commit added support for Analyzer Fixer based file header
  addition to source code files. One was missing and wasn't updated
  through the script since the script only checks starting newline
  or a single comment line which were not enough to fix the file.

- Fortunately, the Analyzer caught this as IDE0073 style error and
  was able fix with a simple click on the suggestion icon in VS IDE.

NOTE: Previous Commit was supposed to fail to demonstrate
      build failure when using `file_header_template`.
2022-09-28 22:02:11 +05:30
Nirmal Guru a264dfb397 Use EditorConfig to apply file headers
- Use 'file_header_template' to specify our header text
  in EditorConfig so that the supported formatters
  can use it automatically when formatting files.
2022-09-28 22:01:46 +05:30
Sergio Pedri bdf9138206 Merge pull request #450 from Nirmal4G/feature/improve-azp-perf
Improve Perf for Azure Pipelines build
2022-09-28 09:25:04 -07:00
Sergio Pedri 982debbd03 Merge pull request #449 from CommunityToolkit/dev/forwarded-property-attributes
Enable explicit attribute forwarding for [ObservableProperty]
2022-09-28 07:55:46 -07:00
Sergio Pedri 213c876e2b Adjust signature for TryGetInfo method 2022-09-28 16:35:48 +02:00
Sergio Pedri df6c49e506 Add unit tests for property attribute forwarding 2022-09-28 16:35:48 +02:00
Sergio Pedri 5ffee2c339 Enable forwarding support for attribute arguments 2022-09-28 16:35:48 +02:00
Sergio Pedri 5798dbccfd Fix IDE suppression for new analyzer 2022-09-28 16:35:48 +02:00
Sergio Pedri d85bbf41dc Add ObservablePropertyAttributeWithPropertyTargetDiagnosticSuppressor 2022-09-28 16:35:48 +02:00
Sergio Pedri f818268f84 Initial draft of forwarded explicit property attributes 2022-09-28 16:35:48 +02:00
Nirmal Guru 9b1ebda8f7 Cache .NET SDKs and Tools
- Cache everything under '$(Agent.ToolsDirectory)/dotnet'
  directory to speed up the build. Check for changes in
  the .NET SDK Version to invalidate and rebuild
  the cache during subsequent builds.
2022-09-21 09:23:22 +05:30
Nirmal Guru 8b130496f5 Refactor and Simplify build definition
- Use 'windows-latest' image.
- Narrow Test Results path pattern.
- Do Restore separately from Build step.
- Don't do previous steps like restore/build.
- Use 'Build.Configuration' for 'Release' build.

- Remove tools that are already present in the image.
- Use Multi-Level lookup to use installed runtime(s).

This reduces the build time by 20% approx.
If .NET SDKs and NuGet packages are cached,
the build time further reduces by another 20%!
2022-09-21 09:23:22 +05:30
Sergio Pedri e6257d8c65 Merge pull request #447 from Youssef1313/patch-1
Replace characters from StringBuilder to reduce string allocations
2022-09-20 13:48:50 -07:00
Youssef Victor 230af38fc3 Replace characters from StringBuilder to reduce string allocations 2022-09-20 08:15:19 +02:00
Sergio Pedri 1287507063 Merge pull request #444 from WeihanLi/readme-nuget-package-enhancement
readme enhancement for nuget package
2022-09-17 08:37:22 -07:00
Weihan LiandNirmal Guru 2c270b1adc Update README.md
Add link for `CommunityToolkit`

Co-authored-by: Nirmal Guru <Nirmal4G@ymail.com>
2022-09-17 16:56:27 +08:00
Weihan Li 47ef580a15 readme enhancement for nuget package 2022-09-17 03:33:19 +00:00
Sergio Pedri 1de395c909 Merge pull request #436 from CommunityToolkit/dev/use-fawmn
Use ForAttributeWithMetadataName<T> when possible
2022-09-16 04:47:02 -07:00
Sergio Pedri f50c392037 Install the .NET Core 3.1 SDK in CI script 2022-09-16 13:24:25 +02:00
Sergio Pedri 9ad0e4bcc7 Install the .NET 6 SDK in CI script 2022-09-16 12:46:44 +02:00
Sergio Pedri 20940ee744 Suppress CA2252 warnings 2022-09-16 12:32:41 +02:00
Sergio Pedri 338172af68 Suppress CA1001 warnings in MVVM Toolkit 2022-09-16 04:04:21 +02:00
Sergio Pedri d1bce29fbc Workaround for ILLinker analyzer crash, fix trimming annotations 2022-09-16 04:02:42 +02:00
Sergio Pedri 3affd935ee Install .NET SDK from CI script 2022-09-16 03:44:05 +02:00
Sergio Pedri f73ff85e90 Merge pull request #439 from CommunityToolkit/readme-updates
Update URLs for Status Badges in Readme
2022-09-15 04:07:23 -07:00
Sergio Pedri 80b748f71a Suppress IL2091 warnings where not needed 2022-09-15 01:26:21 +02:00
Sergio Pedri faf1061c90 Add workaround for Roslyn 4.3 issues 2022-09-15 01:20:42 +02:00
Michael Hawker MSFT (XAML Llama) a5cdb953c1 Update URLs for Status Badges in Readme
Fixes #422
2022-09-13 14:41:22 -07:00