Release Notes - 1.6

1.6.0-funcrel

Note

This extension now supports .NET 8 and as a result the Roslyn internal compiler used by com.castsoftware.dotnet has also been updated to release 4.10. Therefore any custom extensions that depend on com.castsoftware.dotnet will also need to be updated to ensure compatibility with Roslyn 4.10.

Resolved Issues

Customer Ticket Id Details
48217 Fixes a false positive when ExecuteReader is called with argument CommandBehavior.CloseConnection for the rule 3612 "Avoid missing release of SQL connection after an effective lifetime (C#, VB.NET)".
48031 Fixes an issue where for VB .NET source code, the default namespace is not created when namespace is not explicitly defined. The fix ensures that the default namespace is created and the fullnames of objects modified with it.
48394 Fixes an issue where not all violations were detected for the rule 8148 "Avoid artifacts having Incorrect Type Conversion or Cast".
48577 Fixes an issue where the computation of number of lines of code was incorrect.
49209 Fixes an issue (with the "Using" clause) causing a false violation for the rule 7258 "DataReader must be called using CommandBehavior.CloseConnection enumeration".

Other Updates

Details
An update has been implemented to ensure that the "com.castsoftware.dotnet" extension now uses the "com.castsoftware.dotnet.config.tcc" extension for the generation and configuration of transaction entry/end points. In previous releases the com.castsoftware.dotnet was responsible for the generation and configuration of transaction entry/end points.
Fixes an issue causing type conflicts during compilation when two versions of the same assembly exist.
Improve support of dependencies in nuspec file for multiple versions of the same framework kind

Rules

Rule Id New Rule Details
1027102 FALSE Avoid using Regex constructor or static method without timeout: an update to ensure that the regular expression source generators add a timeout.
8148 FALSE Fixes an issue where not all violations were detected for the rule "Avoid artifacts having Incorrect Type Conversion or Cast".
7258 FALSE Fixes an issue (with the "Using" clause) causing a false violation for the rule "DataReader must be called using CommandBehavior.CloseConnection enumeration".

New Support

Summary Details
Support of .NET 8 Support of .NET 8 framework for analyzed projects and as a result the Roslyn internal compiler used by com.castsoftware.dotnet has also been updated to release 4.10.
Support of C# 12 Support of new C# 12 syntax for analyzed projects: Primary constructors, Collection expressions, Inline arrays, Optional parameters in lambda expressions, ref readonly parameter and Alias any type.