-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Invalid cref value "!:ObservableObject" in WPF UserControl #10259
Comments
Reported issue seems to be caused by When Roslyn failed to resolve symbol. Steps to confirm root cause of problem
How to fix problems |
It need to be fixed by CommunityToolkit.Mvvm project side. I thought it can be fixed by changing following line. |
Alright, thank you. I will open the issue in the CommunityToolkit.Mvvm project. |
When using the ObservableObject attribute from the CommunityToolkit.Mvvm v8.3.2 package on the code behind partial class of a WPF UserControl like this:
DocFx seems to have an issue with properly generating the code documentation for the SourceGenerators. The following warning occurs when generating the documention with DocFx v.2.77.0:
warning: InvalidCref: Invalid cref value "!:ObservableObject" found in XML documentation comment for SetProperty defined in CommunityToolkit.Mvvm.SourceGenerators\CommunityToolkit.Mvvm.SourceGenerators.ObservableObjectGenerator\DocFxTest.TestControl.g.cs Line 243.
I am aware that the proper way to handle this kind of functionality should utilize a view model. Also, ObservableObject used in view models don't have this issue with DocFx.
Feel free to have a look at my test project DocFxTest to reproduce this issue.
If this is an user issue and can be solve with a proper docfx.json configuration, please let me know.
Spec Summary:
Expected behavior
No warning.
The text was updated successfully, but these errors were encountered: