Notifications
Announcements
No record found.
Hi,
Is there any way of detecting the ObsoleteAttribute on members from referenced CLR assemblies used by X++ when compiling?
Similar to what SysObsoleteAttribute does to X++ members.
If I compile the code in C#, the warning “CS0618: '< member >' is obsolete” will be outputted, but I can’t find any trace of this warning when building X++.
Thanks,DFA
Hi DFA,
Please check if you have tried build the model with Run Best Practice Checks. Dynamics 365 menu > click Build models > Options.
Hi Judy,
I have tried that without success on a 10.0.29 and 10.0.33.
You can run best-practice checks from the command line. Please check the MS document:
learn.microsoft.com/.../author-best-practice-rules
The warning messages in x++ are also different.
The answers are about the check of obsolete X++ elements.
I don't think that X++ compiler has a feature to warn about obsolete objects in referenced .NET assemblies.
If the referenced assemblies are .NET, then it is not possible.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 592 Most Valuable Professional
André Arnaud de Cal... 478 Super User 2025 Season 2
BillurSamdancioglu 305 Most Valuable Professional