dotnet
dotnet copied to clipboard
Attribute error
Describe the bug
After I add fields, repeated error prompts always appear.
Regression
No response
Steps to reproduce
Create a project, add community toolkit.mvvm,
Expected behavior
What is the cause
Screenshots
IDE and version
VS 2022
IDE version
17.3.0
Nuget packages
- [ ] CommunityToolkit.Common
- [ ] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [X] CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
8.0.0
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
I have the same problem, The condition of the problem is added ”xmlns:xxx="clr-namespace:namespace.xxx“ in the xaml
Min Steps to reproduce
Steps
- create net6.0 wpf app
- use CommunityToolkit.Mvvm nuget packages
- Create a ViewModel, and create a property via ObservablePropertyAttribute, like:
- add xmlns:local="clr-namespace:Demo" in MianWidow
5.build the project (error!!!)
IDE and version
VS 2022
IDE version
17.3.0
Nuget packages
CommunityToolkit.Mvvm
##Nuget package version(s) 8.0.0
+1
If you remove xmlns:local="clr-namespace:Demo"
declare from xaml file the errors was gone, but we must use it. What cause this issue?
Likely a duplicate of #https://github.com/CommunityToolkit/dotnet/issues/343, should be fixed now with the latest SDK 🙂