Breaking Change T1109762
Visible to All Users

Core - The DevExpress.ExpressApp.CodeAnalysis NuGet package is added to XAF .NET 6+ projects to enable error diagnostics by default

What Changed

We enabled Code Diagnostics by default using the Project Converter tool.

Reasons for Change

This change helps to detect XAF-specific errors in your code as you type and thus improves the user experience when developing XAF apps.

Impact on Existing Apps

This change affects all XAF .NET 6-based WinForms and Blazor projects (excluding .NET Framework projects) for versions older than v22.2.2.
If a code analyzer finds XAF/XPO best practice violations, they are reported in the code editor (as a squiggle under the invalid code) and in the Error List window of Visual Studio.

How to Revert to Previous Behavior

This topic describes how to remove the previous behavior: Disable Code Analysis. If your XAF solution has multiple projects, you can disable Roslyn error diagnostics globally for the whole solution using one of the following options:

If you remove the DevExpress.ExpressApp.CodeAnalysis package from your projects in v22.2.2 or newer (because you do not need these error diagnostics), the Project Converter will not add them again when you upgrade to v22.2.3 or newer. We did this intentionally to avoid adding the package again and again once you opt out.

See Also

Core - The DevExpress.ExpressApp.CodeAnalysis NuGet package is added to XAF .NET Framework projects to enable error diagnostics by default

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.