Skip to content
Open
Changes from 4 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0aa7d2b
Initial plan
Copilot Oct 26, 2025
471a1a0
Add Windows Release build job for samples in CI pipeline
Copilot Oct 26, 2025
004a209
Improve sample build script to properly fail on build errors
Copilot Oct 26, 2025
3efffd2
Fix batch script variable comparison syntax
Copilot Oct 26, 2025
9203554
Address review feedback: remove BuildMainProducts, add solution files…
Copilot Oct 26, 2025
b90bc20
Merge branch 'main' into copilot/fix-ci-build-for-samples
Evangelink Oct 29, 2025
12b1490
Remove colored output from build-samples.ps1 to fix pipeline YAML par…
Copilot Oct 29, 2025
b13f450
Apply suggestion from @Evangelink
Evangelink Oct 29, 2025
5e8bf58
Merge branch 'main' into copilot/fix-ci-build-for-samples
Evangelink Oct 29, 2025
9ecbb0a
Apply suggestion from @Evangelink
Evangelink Oct 29, 2025
8ce6ef5
Uncomment Samples_Windows job in pipeline
Evangelink Oct 29, 2025
bf22e18
Clean up azure-pipelines.yml by removing unused tasks
Evangelink Oct 29, 2025
57779c1
Update azure-pipelines.yml
Evangelink Oct 29, 2025
745df4f
Rename job and increase timeout for WindowsSamples
Evangelink Oct 29, 2025
569991b
Update azure-pipelines.yml
Evangelink Oct 29, 2025
4cd6c2c
Fix Join-Path usage for PowerShell 5.1 compatibility
Copilot Oct 29, 2025
ab78477
Try to fix dotnet
Evangelink Oct 29, 2025
b173ac8
Fix
Evangelink Oct 29, 2025
630240e
Address review comments: simplify path handling and use switch parameter
Copilot Oct 30, 2025
d3461a9
Exclude RunnerVsVSTest.sln from CI build (too slow)
Copilot Oct 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,76 @@ stages:
ArtifactName: TestResults_Windows_$(_BuildConfig)
condition: failed()

- job: Samples_Windows
displayName: Build Samples
dependsOn: Windows
timeoutInMinutes: 30
pool:
name: NetCore-Public
demands: ImageOverride -equals windows.vs2022preview.amd64.open
variables:
_BuildConfig: Release
steps:
- task: PowerShell@2
displayName: 'Install Windows SDK'
inputs:
targetType: filePath
filePath: './eng/install-windows-sdk.ps1'
failOnStderr: true
showWarnings: true

- script: eng\common\CIBuild.cmd
-configuration $(_BuildConfig)
-prepareMachine
/p:Publish=false
/p:Test=false
/p:FastAcceptanceTest=true
name: BuildMainProducts
displayName: Build Main Products

- script: |
setlocal enabledelayedexpansion
set "FAILED=0"
echo "Building sample solutions in samples/public folder"
for /r samples\public %%s in (*.sln) do (
echo Building solution: %%s
dotnet build "%%s" --configuration $(_BuildConfig) /p:TreatWarningsAsErrors=false
if !ERRORLEVEL! neq 0 (
echo ERROR: Failed to build %%s
set "FAILED=1"
)
)
echo "Building standalone sample projects"
dotnet build samples\public\mstest-runner\Simple1\Simple1.csproj --configuration $(_BuildConfig) /p:TreatWarningsAsErrors=false
if !ERRORLEVEL! neq 0 (
echo ERROR: Failed to build Simple1
set "FAILED=1"
)
dotnet build samples\public\mstest-runner\runner_vs_vstest\10C_100M\10C100M.csproj --configuration $(_BuildConfig) /p:TreatWarningsAsErrors=false
if !ERRORLEVEL! neq 0 (
echo ERROR: Failed to build 10C_100M
set "FAILED=1"
)
dotnet build samples\public\mstest-runner\runner_vs_vstest\100C_100M\100C100M.csproj --configuration $(_BuildConfig) /p:TreatWarningsAsErrors=false
if !ERRORLEVEL! neq 0 (
echo ERROR: Failed to build 100C_100M
set "FAILED=1"
)
dotnet build samples\public\mstest-runner\runner_vs_vstest\1000C_100M\1000C100M.csproj --configuration $(_BuildConfig) /p:TreatWarningsAsErrors=false
if !ERRORLEVEL! neq 0 (
echo ERROR: Failed to build 1000C_100M
set "FAILED=1"
)
if "!FAILED!" == "1" (
echo One or more samples failed to build
exit /b 1
)
name: BuildSamples
displayName: Build Samples
env:
DOTNET_ROOT: $(Build.SourcesDirectory)/.dotnet
NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages

- job: Linux
timeoutInMinutes: 90
pool:
Expand Down