This exact same problem happened to us, it started marking all our files as test files rather than actual files to scan, I think it was thinking our project was a test project.
I had to put <SonarQubeTestProject>false</SonarQubeTestProject>
inside our csproj file for it to start scanning normally again…