GithubAction SonarScanner MSBuild integration code build failed for .Net application

Hello community, I am new to SonarScanner MSBuild integration with Githubaction deployment but ready to
learn. I am using Githubaction in deployment of .Net application with SonarCloud scanning.
The past one week, I had been having this issue and error log

The SonarScanner for MSBuild integration failed:
The project has not been built - the project must be built in between the begin
and end steps

The SonarScanner for MSBuild integration failed: SonarCloud was unable to collect the
required information about your projects.
Possible causes:

  1. The project has not been built - the project must be built in between the begin
    and end steps

  2. An unsupported version of MSBuild has been used to build the project. Currently
    MSBuild 14.0.25420.1 and higher are supported.

  3. The begin, build and end steps have not all been launched from the same folder

  4. None of the analyzed projects have a valid ProjectGuid and you have not used a
    solution (.sln)

Had gone through the documentation, can someone help out please.

Thanks.

Hey there.

How is your GitHub Actions YML file configured? I encourage you to share it here.