Provide an 'AssemblyVersion' attribute for a .sqlproj aka dacpac file

My Visual Studio Solution contains four .sqlproj database projects. The Maintenance rule https://sonar.rabobank.nl/coding_rules?open=csharpsquid%3AS3904&rule_key=csharpsquid%3AS3904 is detecting a missing AssemblyVersion for these projects. As these projects produce dacpac files, they have a DacVersion, not an AssemblyVersion. Can this C# rule be adjusted so it does not scan .sqlproj files and can a separate rule be created to make sure a dacpac file has a DacVersion?

Make sure to read this post before raising a thread here:

Then tell us:

  • What language is this for?
  • Which rule?
  • Why do you believe it’s a false-positive/false-negative?
  • Are you using
    • SonarQube Cloud?
    • SonarQube Server / Community Build - which version?
    • SonarQube for IDE - which IDE/version?
      • in connected mode with SonarQube Server / Community Build or SonarQube Cloud?
  • How can we reproduce the problem? Give us a self-contained snippet of code (formatted text, no screenshots)

Hey @BramL, welcome to the Community! As indicated the template: could you let us know which version are you on? It’s important for us to know it because perhaps the rule behavior differs across versions, or it could even be that this is fixed in a later version.

Hi Andrés,

Thank you for following up. We are on the server version, and I have not figured out how to determine the number. Our project URL is https://sonar.rabobank.nl/projects. Perhaps you can see from the inside which version we are running.

With Visual Studio we are running version 2022: Version 17.14.35 (june 2026).

Kind regards,

Bram

I can’t access your instance, most likely it’s only reachable from your company’s network. Anyway, you can see the version in the page footer. Another way to check the version is https://sonar.rabobank.nl/api/server/version.

Hi Andrés, the version is 2025.4.3.113915