Introduction to the MVVM Toolkit example does not compile
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- documentation
Research direction
Start with docs/mvvm/generators/errors/MVVMTK0045.md and compare its example with the compiler diagnostics listed in the issue. Verify the corrected MVVM Toolkit example compiles, then update the documentation so the guidance for MVVMTK0045 and MVVMTK0014 is accurate.
Written by the indexing model from the issue text.
Description
Type of issue
Code doesn't work
Description
So here we go again...
public class ViewModelObject : ObservableObject
{
[ObservableProperty]
public int Count = 1;
}
This doesn't work because it throws MVVMTK0045 and MVVMTK0014
public partial class ViewModelObject : ObservableObject
{
[ObservableProperty]
public int Count = 1;
}
This doesn't work because it throws MVVMTK0045 and MVVMTK0014
public partial class ViewModelObject : ObservableObject
{
[ObservableProperty]
public partial int Count = 1;
}
This doesn't work because it throws CS0267 - as code to fix MVVMTK0045 and MVVMTK0014 recommends adding partial to a property.
What works?
Any guesses...
Page URL
https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/generators/errors/mvvmtk0045
Content source URL
Document Version Independent Id
e5623fb0-a53a-1164-b4d2-6f81bb38d041
Platform Id
cb1c87d2-610f-30a6-37c6-ecd053cb3b68
Article author
@Sergio0694
Metadata
- ID: e5623fb0-a53a-1164-b4d2-6f81bb38d041
- PlatformId: cb1c87d2-610f-30a6-37c6-ecd053cb3b68
- Service: dotnet-communitytoolkit
- Sub-service: mvvm-toolkit
- Dominant language
- No language data
- Stars
- 168
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MicrosoftDocs/CommunityToolkit
-
dotnet-communitytoolkit/svc dotnet-maui-community-toolkit/subsvc Pri2
Difficulty 1/5 1-3 hours Newbie friendliness 91/100
MicrosoftDocs/CommunityToolkit#651 · 1 comment ·
-
Just a typo? Opencommunity-toolkit/prod dotnet Pri2
Difficulty 1/5 Under an hour Newbie friendliness 70/100
-
dotnet-communitytoolkit/prod maui Pri1
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
dotnet dotnet-communitytoolkit/prod Pri1
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
MicrosoftDocs/CommunityToolkit#659 · 1 comment ·
All issues in MicrosoftDocs/CommunityToolkit
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·