dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

Attribute error

Open xwang-888 opened this issue 2 years ago • 4 comments

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

image image

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

xwang-888 avatar Aug 15 '22 09:08 xwang-888

I have the same problem, The condition of the problem is added ”xmlns:xxx="clr-namespace:namespace.xxx“ in the xaml

Firito avatar Aug 15 '22 09:08 Firito

Min Steps to reproduce

Steps

  1. create net6.0 wpf app
  2. use CommunityToolkit.Mvvm nuget packages
  3. Create a ViewModel, and create a property via ObservablePropertyAttribute, like: image
  4. add xmlns:local="clr-namespace:Demo" in MianWidow image 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

Firito avatar Aug 15 '22 10:08 Firito

+1

LiuFu2014 avatar Aug 17 '22 05:08 LiuFu2014

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?

sdhongjun avatar Aug 28 '22 06:08 sdhongjun

Likely a duplicate of #https://github.com/CommunityToolkit/dotnet/issues/343, should be fixed now with the latest SDK 🙂

Sergio0694 avatar Dec 18 '22 02:12 Sergio0694