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 diff --git a/RELEASENOTES.md b/RELEASENOTES.md index fab166038..0545f082f 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -58,6 +58,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 - Issue 2265 - Creating a Performance Test App fails on Linux due to case-sensitive path lookup for the Performance Toolkit sample app ## v9.0