# New Rules for C# and VB.NET

**URL:** <https://community.sonarsource.com/t/new-rules-for-c-and-vb-net/186077>\
**Category:** Discussions\
**Tags:** vbnet, sonarqube, dotnet\
**Created:** [July 17, 2026, 10:02am UTC](https://community.sonarsource.com/t/new-rules-for-c-and-vb-net/186077 "2026-07-17T10:02:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam.wilson](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/adam.wilson/32/76853_2.png) [@adam.wilson](https://community.sonarsource.com/u/adam.wilson)\
**Post date:** [July 17, 2026, 10:02am UTC](https://community.sonarsource.com/t/new-rules-for-c-and-vb-net/186077/1 "2026-07-17T10:02:48Z")

</div>

Hi .NET folks

The .NET analyzer is updated with a new rule along with false-positive fixes and and rule description improvements. The new rule (S8717) prevents an application crash in the case that multiple [Key] attributes are used to define a composite key in Entity Framework Core.

The rule is available in SonarQube Cloud today and will be in SonarQube Server 2026.4+
