.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
This is not a bug, it's by design. The error message is telling you what the issue is. You forgot to add partial to your class 🙂
Just make MainViewModel a partial class and this will work fine.
Describe the bug
When using [ReplayCommand] to mark a method in MainViewModel, there is a cs0260 error prompt when compiling
Regression
No response
Steps to reproduce
Expected behavior
Normal compilation passed
Screenshots
IDE and version
VS 2022
IDE version
17.8.3
Nuget packages
Nuget package version(s)
8.2.1
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item