Hello,
We use esproj projects and we found that if we use a recent version of Microsoft.VisualStudio.JavaScript.SDK, the generated FilesToAnalyze.txt for esproj project shows PROJECTDIR/**/* instead of files to scan.
We don’t get the issue with Microsoft.VisualStudio.JavaScript.Sdk/1.0.784122
but on version Microsoft.VisualStudio.JavaScript.Sdk/1.0.1184077
and also the latest, published 2 days ago, the issue is here.
I made some checks to find from which sdk version it stopped working, and I found it was from Microsoft.VisualStudio.JavaScript.SDK/1.0.824748
.
Also, I found that if we restart the dotnet build
command on solution a second time, FilesToAnalyze.txt from esproj projet are populated with right source files.
Issue found on Sonarscanner version 8.0.1 to 9.0.0 with .NET 8.0.8 CLI and .NET SDK 8.0.401
What we have on non working SDK versions :
/builds/solution-directory/Solution.Project.ClientApp/**/*
/builds/solution-directory/Solution.Project.ClientApp/.vscode/launch.json
and on working SDK versions :
/builds/solution-directory/Solution.Project.ClientApp/.editorconfig
/builds/solution-directory/Solution.Project.ClientApp/.gitignore
/builds/solution-directory/Solution.Project.ClientApp/angular.json
/builds/solution-directory/Solution.Project.ClientApp/aspnetcore-https.js
/builds/solution-directory/Solution.Project.ClientApp/CHANGELOG.md
/builds/solution-directory/Solution.Project.ClientApp/eslint.config.js
/builds/solution-directory/Solution.Project.ClientApp/jest.config.js
/builds/solution-directory/Solution.Project.ClientApp/nuget.config
/builds/solution-directory/Solution.Project.ClientApp/package-lock.hash
/builds/solution-directory/Solution.Project.ClientApp/package-lock.json
/builds/solution-directory/Solution.Project.ClientApp/package.json
/builds/solution-directory/Solution.Project.ClientApp/public/favicon.ico
/builds/solution-directory/Solution.Project.ClientApp/README.md
/builds/solution-directory/Solution.Project.ClientApp/setup-jest.ts
/builds/solution-directory/Solution.Project.ClientApp/sheriff.config.ts
/builds/solution-directory/Solution.Project.ClientApp/src/app/app-routing.module.ts
/builds/solution-directory/Solution.Project.ClientApp/src/app/app.component.css
/builds/solution-directory/Solution.Project.ClientApp/src/app/app.component.html
/builds/solution-directory/Solution.Project.ClientApp/src/app/app.component.spec.ts
/builds/solution-directory/Solution.Project.ClientApp/src/app/app.component.ts
/builds/solution-directory/Solution.Project.ClientApp/src/app/app.module.ts
/builds/solution-directory/Solution.Project.ClientApp/src/index.html
/builds/solution-directory/Solution.Project.ClientApp/src/main.ts
/builds/solution-directory/Solution.Project.ClientApp/src/proxy.conf.js
/builds/solution-directory/Solution.Project.ClientApp/src/styles.css
/builds/solution-directory/Solution.Project.ClientApp/tsconfig.app.json
/builds/solution-directory/Solution.Project.ClientApp/tsconfig.spec.json
/builds/solution-directory/Solution.Project.ClientApp/.vscode/launch.json