From 329624b8af6036df1f4d7c4f1f164e073a611d48 Mon Sep 17 00:00:00 2001 From: spetersenms Date: Wed, 17 Jun 2026 10:12:32 +0200 Subject: [PATCH 1/2] Include test folders for app source cop --- Actions/CompileApps/Compile.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Actions/CompileApps/Compile.ps1 b/Actions/CompileApps/Compile.ps1 index 325a0013a..3a7f9e89c 100644 --- a/Actions/CompileApps/Compile.ps1 +++ b/Actions/CompileApps/Compile.ps1 @@ -216,7 +216,11 @@ try { # Generate AppSourceCop.json with mandatory affixes / obsoleteTag settings (always when AppSourceCop is enabled) # When baseline apps are available, also include the baseline version + package cache path for breaking change detection - New-AppSourceCopJson -AppFolders $settings.appFolders -BaselineApps $baselineApps -BaselinePackageCachePath $packageCachePath -CompilerFolder $compilerFolder -Settings $settings + $appSourceCopFolders = @($settings.appFolders) + if ($settings.enableCodeAnalyzersOnTestApps) { + $appSourceCopFolders += @($settings.testFolders) + @($settings.bcptTestFolders) + } + New-AppSourceCopJson -AppFolders $appSourceCopFolders -BaselineApps $baselineApps -BaselinePackageCachePath $packageCachePath -CompilerFolder $compilerFolder -Settings $settings } # Update the app jsons with version number (and other properties) from the app manifest files From a0de4c3732989715e2c5093051be3713a358256e Mon Sep 17 00:00:00 2001 From: spetersenms Date: Wed, 17 Jun 2026 10:54:27 +0200 Subject: [PATCH 2/2] adding release notes --- RELEASENOTES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 0a26399df..ff1861865 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -57,6 +57,7 @@ The `DownloadProjectDependencies` action now downloads only artifacts from depen - Issue 2211 - Cannot create a release if a project contains only test apps - Issue 2214 - Workspace compilation not working with external dependencies - Issue 2235 - Workspace compilation: only the first `customCodeCops` entry resolved when multiple relative paths were configured. Relative `customCodeCops` paths are now resolved against the project folder before being passed to the compiler. +- Issue 2267 - appsourcecop.json is not created for testapps even if enableCodeAnalyzersOnTestApps=true ## v9.0