Azure Devops Pipeline SonarCloud not submitting code for .NET Core builds?

Update:

I’ve tried it on another .net framework project, and it’s the same boat. The build pipeline successfully runs the SonarCloud steps, and SonarCloud can see it… but it’s all green, with no code

I’ve noticed that on the build which is working, I have the following lines in the log:
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=62ms
INFO: SCM provider for this project is: git
INFO: 43 files to be analyzed
INFO: 43/43 files analyzed
INFO: 1 file had no CPD blocks
INFO: Calculating CPD for 36 files
INFO: CPD calculation finished
INFO: SCM writing changed lines
INFO: SCM writing changed lines (done) | time=689ms
INFO: Analysis report generated in 814ms, dir size=539 KB
INFO: Analysis report compressed in 141ms, zip size=196 KB
INFO: Analysis report uploaded in 407ms

But on the one which isn’t working, it has the following:
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=59ms
INFO: 18 files had no CPD blocks
INFO: Calculating CPD for 61 files
INFO: CPD calculation finished
INFO: SCM writing changed lines
INFO: SCM writing changed lines (done) | time=0ms
INFO: Analysis report generated in 110ms, dir size=197 KB
INFO: Analysis report compressed in 78ms, zip size=86 KB
INFO: Analysis report uploaded in 266ms