- Invoke
verify-prerelease-altool. - Invoke
download-al-symbolswhen the project has symbol references. - Create a temporary
.code-workspacethrough:
```powershell
& $env:ALTOOL_PATH workspace create $workspaceFile $projectPath
```
- Run the requested analyzer with ALTool workspace compile:
```powershell
& $env:ALTOOL_PATH workspace compile $workspaceFile `
--packagecachepath (Join-Path $projectPath '.alpackages') `
--analyzers PTECop `
--outfolder $outputFolder `
--errorlogdirectory $errorLogFolder
```
Select only the reported analyzer from AppSourceCop, CodeCop, PTECop, or UICop. Use
--ruleset when the issue supplies one. Never invoke alc.exe.
- Preserve the exact diagnostics and exit code. A missing analyzer, ruleset, or symbol package is an
inconclusive setup failure, not evidence that no diagnostic exists.
- Exercise both the reported case and the nearest valid control case when feasible.