CommunityToolkit / MVVM-Samples

Sample repo for MVVM package
Other
1.11k stars 222 forks source link

Compile Errors: The type or namespace name 'ICommand' could not be found #94

Closed pfafft33 closed 2 years ago

pfafft33 commented 2 years ago

I have tried upgrading my NuGet for the Community Toolkit.Mvvm the last 2 times that an update was available (Preview 4 and 8.0.0 Stable). Both times, I started getting compile errors as described in the title of this issue. So, I have had to revert back to version 8.0.0-preview3, which still compiles and runs cleanly.

Any help in getting past this would be appreciated!

pfafft33 commented 2 years ago

AHA!!! - I just watched a YouTube video by James Montemagno that gave me the solution. In newer versions of the Community Toolkit.Mvvm [ICommand] has been replaced by [RelayCommand]

Thank you James Montemagno! You ROCK!