Commit Graph
21 Commits
Author SHA1 Message Date
Sergio Pedri e7a79c3c5b Rename code fixer project to CommunityToolkit.Mvvm.CodeFixers 2023-01-23 16:53:47 +01:00
Fredric Silberberg 441abbbdbc Add fixers project and implement a fixer for FieldReferenceForObservablePropertyFieldAnalyzer
This adds a fixer for MVVMTK0034, that simply swaps the field reference for what will be generated for the property. It leaves the qualification intact, basically just doing a text swap. Because it's very a very simple fixer, the built-in batch fixall provider works just fine and does not need special handling.

While I implemented the fixer and added some tests, I did not actually set up all the msbuild goop for properly packaging this as part of the existing packages (as, frankly, the multi-targeting and msbuild setup in this repo is very complicated and I didn't feel like trying to grok exactly how to add it given the setup). The fixer assembly needs to be put next to the analyzer assemblies. This PR will be editable by maintainers, so feel free to implement this in-place in the PR itself.

Fixes https://github.com/CommunityToolkit/dotnet/issues/577.
2023-01-21 23:16:11 -08:00
Sergio Pedri 1f60a7bd4e Move all source files into src\ subfolder 2022-11-21 17:25:07 +01:00
Sergio Pedri f3977549a6 Remove Roslyn 4.3 workaround, bump to 4.3.1 2022-10-04 12:14:36 +02:00
Sergio Pedri 65110da12c Restructure test projects into shared projects for multi-targeting 2022-09-13 13:33:05 +02:00
Sergio Pedri 8569223a76 Restructure source generator into shared project 2022-09-12 22:45:08 +02:00
Sergio Pedri b52b427058 Remove [Conditional] from MVVM Toolkit attributes 2022-05-09 16:11:44 +02:00
Nirmal Guru ea1010575d Remove Cake Build (#94)
We no longer require Cake build nor we use it extensively!
Update Azure Pipelines (CI YAML) Script to be more modern and runnable across platforms.
Replaced the headers check with a PowerShell script mimicking the Cake script's `UpdateHeaders` task functionality.
2022-01-25 13:23:53 +01:00
Sergio Pedri e31a08890e Add unit tests for attributes stripping 2021-12-31 20:10:50 +01:00
Sergio Pedri 8e7c48fab1 Move MVVM Toolkit internals tests to separate project 2021-12-31 16:47:10 +01:00
Sergio Pedri e724444cbb Add IsINotifyPropertyChangingDisabled unit tests 2021-12-10 01:03:20 +01:00
Sergio Pedri e7849904a5 Rename a helper test project
This fixes an issue running dotnet test on the solution
2021-11-05 00:43:07 +01:00
Sergio Pedri b498321331 Rename folders/projects from Microsoft.Toolkit to CommunityToolkit 2021-11-01 17:07:47 +01:00
Sergio Pedri fd58931fb0 Rename common .props/.targets files 2021-11-01 16:36:45 +01:00
Sergio Pedri e6be26c3a2 Better organize solution files in solution explorer 2021-11-01 16:31:57 +01:00
Sergio Pedri 2c999fbe69 Rename unit tests folder 2021-11-01 16:26:47 +01:00
Sergio Pedri 1b66418112 Rename test projects for better consistency 2021-11-01 16:24:24 +01:00
Sergio Pedri 6373401d3e Refactor Microsoft.Toolkit tests 2021-11-01 13:00:53 +01:00
Sergio Pedri 49e4f15e58 Refactor Mvvm tests 2021-11-01 12:52:51 +01:00
Sergio Pedri 08fdb3d998 Refactor Diagnostics tests 2021-11-01 12:46:06 +01:00
Sergio Pedri 7752669fd6 Rename solution file to work around VS bug
See https://developercommunity.visualstudio.com/t/1568612.
We can consider reverting this once this has been fixed.
Used "dotnet" to be consistent with repo name. Using "NET", "dotNet" or variations would've just been wrong, so "dotnet" seemed like the best alternative.
2021-11-01 12:37:09 +01:00