From ac4fecf3b8c3cff8d5159e1389ba45461bba02f9 Mon Sep 17 00:00:00 2001
From: Adam Boniecki <20281641+abonie@users.noreply.github.com>
Date: Tue, 1 Sep 2026 11:09:39 +0200
Subject: [PATCH 1/6] Make release/dev18.11 flow into rel/insiders (#20412)
For VS insertion purposes
---
azure-pipelines.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 1517ff30b68..317d5099b53 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -29,11 +29,11 @@ variables:
# The future "product" gets developed in main, so should be main in main.
# When servicing branch gets created, this should maintain the mapping between F# servicing and VS servicing branches
- name: FSharpReleaseBranchName
- value: main
+ value: release/dev18.11
# VS Insertion branch name (NOT the same as F# branch)
# ( for main we insert into VS main and for all *previous* releases we insert into corresponding VS release),
- name: VSInsertionTargetBranchName
- value: main
+ value: rel/insiders
- name: _TeamName
value: FSharp
- name: TeamName
From e22bcdafd6a965fef0798d42e7e948bd0d774fef Mon Sep 17 00:00:00 2001
From: Adam Boniecki <20281641+abonie@users.noreply.github.com>
Date: Thu, 12 Nov 2026 00:08:40 +0100
Subject: [PATCH 2/6] [release/dev18.11] Backport package security updates
(#20956)
* Update cryptography dependency to 10.0.13 (#20783)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d8b637c2-ce3f-47e0-bf7f-ea6809e16eb6
Backport-of: 6c79b637ac048f6987980b4641cb8ead45355fec
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3ea3661e-bfd2-4eab-ae53-dffca4d40576
* Update MessagePack package version to 2.5.303 (#20854)
Backport-of: fe180deb551cc47a57de788c936e2fd4d778a909
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3ea3661e-bfd2-4eab-ae53-dffca4d40576
* Update .NET SDK to unblock NativeAOT restore (#20929)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 490c9e24-6626-47cf-a24a-266fc29bd1d2
Backport-of: 23950a91b731fc7a05764d372e55e9d040575b43
Copilot-Session: 3ea3661e-bfd2-4eab-ae53-dffca4d40576
* Adapt floating-point conversion tests for .NET 11 (#20400)
Backport the numeric-conversion test adaptations from dotnet/fsharp#20400, retaining older-runtime expectations.
Source-commit: 0b2dec7f50b4dd1e488bee0b2cb4d2f4a812f374
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3ea3661e-bfd2-4eab-ae53-dffca4d40576
* Publish ILVerify actual baselines on CI failure (#20585)
Backport the pipeline artifact publishing and its regression tests from dotnet/fsharp#20585. Keep verifier failures unchanged and diagnostic collection and publishing non-blocking.
Source-commit: c593bdb0b998b36bd01a7efd32d199557117c5d7
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3ea3661e-bfd2-4eab-ae53-dffca4d40576
* Adapt String completion expectations for .NET 11 (#20400)
Backport the remaining EditorTests.fs compatibility hunk from dotnet/fsharp#20400. Include ToLowerOrdinal and ToUpperOrdinal only for .NET 11 and newer, preserving older-framework completion expectations.
Source-commit: 0b2dec7f50b4dd1e488bee0b2cb4d2f4a812f374
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3ea3661e-bfd2-4eab-ae53-dffca4d40576
* Bump servicing package versions after publication
Advance the shared build number to 102 for FSharp.Core 11.0.102 and FSharp.Compiler.Service 43.13.102.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3ea3661e-bfd2-4eab-ae53-dffca4d40576
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d8b637c2-ce3f-47e0-bf7f-ea6809e16eb6
Copilot-Session: 3ea3661e-bfd2-4eab-ae53-dffca4d40576
Copilot-Session: 490c9e24-6626-47cf-a24a-266fc29bd1d2
---
azure-pipelines-PR.yml | 32 +++
eng/Packages.props | 2 +-
eng/Version.Details.props | 2 +-
eng/Version.Details.xml | 2 +-
eng/Versions.props | 2 +-
global.json | 4 +-
.../EditorTests.fs | 6 +-
.../FSharp.Core/OperatorsModule2.fs | 21 +-
.../FSharp.Core/OperatorsModuleDynamic.fs | 28 +-
.../TestFrameworkHelpers.fs | 5 +
tests/ILVerify/ilverify.Artifacts.Tests.ps1 | 249 ++++++++++++++++++
11 files changed, 339 insertions(+), 14 deletions(-)
create mode 100644 tests/ILVerify/ilverify.Artifacts.Tests.ps1
diff --git a/azure-pipelines-PR.yml b/azure-pipelines-PR.yml
index ae2ceb05d6c..1b34c679073 100644
--- a/azure-pipelines-PR.yml
+++ b/azure-pipelines-PR.yml
@@ -746,6 +746,38 @@ stages:
displayName: Run ILVerify
workingDirectory: $(Build.SourcesDirectory)
+ - pwsh: |
+ $ErrorActionPreference = 'Stop'
+ Write-Host "##vso[task.setvariable variable=ILVerifyActualBaselinesFound]false"
+ $source = "$(Build.SourcesDirectory)\tests\ILVerify"
+ if (-not (Test-Path -LiteralPath $source -PathType Container)) {
+ Write-Host "No ILVerify actual baselines: source directory is absent."
+ return
+ }
+ $actuals = @(Get-ChildItem -LiteralPath $source -Filter '*.bsl.actual' -File)
+ if ($actuals.Count -eq 0) {
+ Write-Host "No ILVerify actual baselines found."
+ return
+ }
+ $destination = "$(Build.ArtifactStagingDirectory)\ILVerifyActualBaselines-$(System.JobAttempt)"
+ New-Item -ItemType Directory -Path $destination | Out-Null
+ foreach ($actual in $actuals) {
+ Copy-Item -LiteralPath $actual.FullName -Destination $destination
+ }
+ Write-Host "Staged $($actuals.Count) ILVerify actual baseline(s)."
+ Write-Host "##vso[task.setvariable variable=ILVerifyActualBaselinesFound]true"
+ displayName: Stage ILVerify actual baselines
+ condition: failed()
+ continueOnError: true
+
+ - task: PublishPipelineArtifact@1
+ displayName: Publish ILVerify actual baselines
+ inputs:
+ targetPath: '$(Build.ArtifactStagingDirectory)\ILVerifyActualBaselines-$(System.JobAttempt)'
+ artifactName: 'ILVerify actual baselines Attempt $(System.JobAttempt)'
+ condition: and(failed(), eq(variables['ILVerifyActualBaselinesFound'], 'true'))
+ continueOnError: true
+
#-------------------------------------------------------------------------------------------------------------------#
# F# Compiler Regression Tests #
#-------------------------------------------------------------------------------------------------------------------#
diff --git a/eng/Packages.props b/eng/Packages.props
index b609655af51..29ea832e101 100644
--- a/eng/Packages.props
+++ b/eng/Packages.props
@@ -16,7 +16,7 @@
-
+
diff --git a/eng/Version.Details.props b/eng/Version.Details.props
index 64c56630211..a22ddfcc573 100644
--- a/eng/Version.Details.props
+++ b/eng/Version.Details.props
@@ -33,7 +33,7 @@ This file should be imported by eng/Versions.props
10.0.8
10.0.8
10.0.8
- 10.0.10
+ 10.0.13
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 02c6cafa04f..2d036cf1e60 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -79,7 +79,7 @@
-
+
https://github.com/dotnet/runtime
diff --git a/eng/Versions.props b/eng/Versions.props
index febf548022a..e4e08b4a593 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -19,7 +19,7 @@
11
0
- 101
+ 102
0
diff --git a/global.json b/global.json
index 6dc5358084a..f73f57ae326 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "11.0.100-preview.6.26359.118",
+ "version": "11.0.100-rc.3.26522.148",
"allowPrerelease": true,
"rollForward": "latestMinor",
"paths": [
@@ -13,7 +13,7 @@
"runner": "Microsoft.Testing.Platform"
},
"tools": {
- "dotnet": "11.0.100-preview.6.26359.118",
+ "dotnet": "11.0.100-rc.3.26522.148",
"vs": {
"version": "18.0",
"components": [
diff --git a/tests/FSharp.Compiler.Service.Tests/EditorTests.fs b/tests/FSharp.Compiler.Service.Tests/EditorTests.fs
index 7fb046be29f..77f76a50bec 100644
--- a/tests/FSharp.Compiler.Service.Tests/EditorTests.fs
+++ b/tests/FSharp.Compiler.Service.Tests/EditorTests.fs
@@ -36,7 +36,11 @@ let stringMethods =
"ReplaceLineEndings";
#endif
"Split"; "StartsWith"; "Substring";
- "ToCharArray"; "ToLower"; "ToLowerInvariant"; "ToString"; "ToUpper";
+ "ToCharArray"; "ToLower"; "ToLowerInvariant";
+#if NET11_0_OR_GREATER
+ "ToLowerOrdinal"; "ToUpperOrdinal";
+#endif
+ "ToString"; "ToUpper";
"ToUpperInvariant"; "Trim"; "TrimEnd"; "TrimStart";
#if NETCOREAPP
"TryCopyTo"
diff --git a/tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModule2.fs b/tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModule2.fs
index 358c155a3a8..88f2b28208f 100644
--- a/tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModule2.fs
+++ b/tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModule2.fs
@@ -125,23 +125,33 @@ type OperatorsModule2() =
let result = Operators.int16 Single.MaxValue
if Info.isNetFramework then
Assert.AreEqual(0s, result)
+ elif Info.isNet11OrGreater then
+ Assert.AreEqual(Int16.MaxValue, result)
else
Assert.AreEqual(-1s, result)
// Overflow
let result = Operators.int16 Single.MinValue
- Assert.AreEqual(0s, result)
+ if Info.isNet11OrGreater then
+ Assert.AreEqual(Int16.MinValue, result)
+ else
+ Assert.AreEqual(0s, result)
// Overflow
let result = Operators.int16 Double.MaxValue
if Info.isNetFramework then
Assert.AreEqual(0s, result)
+ elif Info.isNet11OrGreater then
+ Assert.AreEqual(Int16.MaxValue, result)
else
Assert.AreEqual(-1s, result)
// Overflow
let result = Operators.int16 Double.MinValue
- Assert.AreEqual(0s, result)
+ if Info.isNet11OrGreater then
+ Assert.AreEqual(Int16.MinValue, result)
+ else
+ Assert.AreEqual(0s, result)
let result = Operators.int16 Int64.MaxValue
Assert.AreEqual(-1s, result)
@@ -633,12 +643,17 @@ type OperatorsModule2() =
// Overflow
let result = Operators.sbyte Double.MinValue
- Assert.AreEqual(0y, result)
+ if Info.isNet11OrGreater then
+ Assert.AreEqual(SByte.MinValue, result)
+ else
+ Assert.AreEqual(0y, result)
// Overflow
let result = Operators.sbyte Double.MaxValue
if Info.isNetFramework then
Assert.AreEqual(0y, result)
+ elif Info.isNet11OrGreater then
+ Assert.AreEqual(SByte.MaxValue, result)
else
Assert.AreEqual(-1y, result)
diff --git a/tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModuleDynamic.fs b/tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModuleDynamic.fs
index 7d8b3678821..bbdf737826b 100644
--- a/tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModuleDynamic.fs
+++ b/tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModuleDynamic.fs
@@ -312,23 +312,33 @@ module OperatorsModuleDynamic =
let result = Operators.int16 Single.MaxValue
if Info.isNetFramework then
Assert.AreEqual(0s, result)
+ elif Info.isNet11OrGreater then
+ Assert.AreEqual(Int16.MaxValue, result)
else
Assert.AreEqual(-1s, result)
// Overflow
let result = Operators.int16 Single.MinValue
- Assert.AreEqual(0s, result)
+ if Info.isNet11OrGreater then
+ Assert.AreEqual(Int16.MinValue, result)
+ else
+ Assert.AreEqual(0s, result)
// Overflow
let result = Operators.int16 Double.MaxValue
if Info.isNetFramework then
Assert.AreEqual(0s, result)
+ elif Info.isNet11OrGreater then
+ Assert.AreEqual(Int16.MaxValue, result)
else
Assert.AreEqual(-1s, result)
// Overflow
let result = Operators.int16 Double.MinValue
- Assert.AreEqual(0s, result)
+ if Info.isNet11OrGreater then
+ Assert.AreEqual(Int16.MinValue, result)
+ else
+ Assert.AreEqual(0s, result)
let result = Operators.int16 Int64.MaxValue
Assert.AreEqual(-1s, result)
@@ -590,23 +600,33 @@ module OperatorsModuleDynamic =
// Overflow
let result = Operators.sbyte Single.MinValue
- Assert.AreEqual(0y, result)
+ if Info.isNet11OrGreater then
+ Assert.AreEqual(SByte.MinValue, result)
+ else
+ Assert.AreEqual(0y, result)
// Overflow
let result = Operators.sbyte Single.MaxValue
if Info.isNetFramework then
Assert.AreEqual(0y, result)
+ elif Info.isNet11OrGreater then
+ Assert.AreEqual(SByte.MaxValue, result)
else
Assert.AreEqual(-1y, result)
// Overflow
let result = Operators.sbyte Double.MinValue
- Assert.AreEqual(0y, result)
+ if Info.isNet11OrGreater then
+ Assert.AreEqual(SByte.MinValue, result)
+ else
+ Assert.AreEqual(0y, result)
// Overflow
let result = Operators.sbyte Double.MaxValue
if Info.isNetFramework then
Assert.AreEqual(0y, result)
+ elif Info.isNet11OrGreater then
+ Assert.AreEqual(SByte.MaxValue, result)
else
Assert.AreEqual(-1y, result)
diff --git a/tests/FSharp.Core.UnitTests/TestFrameworkHelpers.fs b/tests/FSharp.Core.UnitTests/TestFrameworkHelpers.fs
index 31a699ae586..c0d2682a654 100644
--- a/tests/FSharp.Core.UnitTests/TestFrameworkHelpers.fs
+++ b/tests/FSharp.Core.UnitTests/TestFrameworkHelpers.fs
@@ -31,6 +31,11 @@ module Info =
/// Whether a test is run after being compiled to .NET Native
let isNetNative = framework.StartsWith(".NET Native")
+ /// From .NET 11, narrow (sbyte/int16) floating-point-to-integer conversions saturate directly to the
+ /// target type's range. Earlier runtimes saturated to Int32 first and then truncated the low bits, which
+ /// yielded different overflow results for the signed narrow types. Use this to select the expected value.
+ let isNet11OrGreater = not isNetFramework && Environment.Version.Major >= 11
+
module private Impl =
diff --git a/tests/ILVerify/ilverify.Artifacts.Tests.ps1 b/tests/ILVerify/ilverify.Artifacts.Tests.ps1
new file mode 100644
index 00000000000..8d01474d462
--- /dev/null
+++ b/tests/ILVerify/ilverify.Artifacts.Tests.ps1
@@ -0,0 +1,249 @@
+# Requires PowerShell 7 on Windows; compatible with Pester 3.x+.
+# Run with: Invoke-Pester .\tests\ILVerify\ilverify.Artifacts.Tests.ps1
+
+$pipeline = (Get-Content "$PSScriptRoot\..\..\azure-pipelines-PR.yml" -Raw).Replace("`r`n", "`n")
+$jobs = [regex]::Matches($pipeline, '(?ms)^ - job: ILVerify\r?\n.*?(?=^ {0,8}\S|\z)')
+if ($jobs.Count -ne 1) { throw "Expected exactly one ILVerify job." }
+$steps = [regex]::Matches($jobs[0].Value, '(?ms)^ {10}- .*?(?=^ {10}- |\z)') | ForEach-Object { $_.Value.TrimEnd() }
+
+function Get-ILVerifyStep([string]$Name) {
+ $found = @($steps | Where-Object { $_ -match "(?m)^ {12}displayName: $([regex]::Escape($Name))\r?$" })
+ if ($found.Count -ne 1) { throw "Expected one '$Name' step in job ILVerify; found $($found.Count)." }
+ return $found[0]
+}
+
+function Invoke-Producer([string]$Scenario = 'mismatch', [string]$Root = "$caseRoot\repo") {
+ $source = New-Item -ItemType Directory -Path "$Root\tests\ILVerify" -Force
+ New-Item -ItemType Directory -Path "$Root\eng\common", "$Root\runtime\10.0.0" -Force | Out-Null
+ Copy-Item -LiteralPath "$PSScriptRoot\ilverify.ps1" -Destination $source.FullName
+ $buildExit = if ($Scenario -eq 'early failure') { 7 } else { 0 }
+ Set-Content "$Root\build.cmd" "@exit /b $buildExit"
+ Set-Content "$Root\eng\common\dotnet.ps1" @'
+if ($args.Count -ne 3 -or $args[0] -ne 'msbuild' -or
+ $args[2] -notin '--getProperty:FSharpNetCoreProductTargetFramework', '--getProperty:FSharpCoreShippedNetTargetFramework') {
+ throw "Unexpected MSBuild request: $args"
+}
+'net10.0'
+'@
+ $selected = @('FSharp.Core_Debug_netstandard2.1')
+ if ($Scenario -eq 'multiple') { $selected += 'FSharp.Compiler.Service_Release_netcoreapp', 'FSharp.Core_Release_netstandard2.0' }
+ if ($Scenario -eq 'retry') { $selected = @('FSharp.Compiler.Service_Debug_netstandard2.0') }
+ if ($Scenario -eq 'matching' -or $Scenario -eq 'early failure') { $selected = @() }
+ $outputs = @{}
+ $expected = @{}
+ foreach ($project in 'FSharp.Core', 'FSharp.Compiler.Service') {
+ $tfms = if ($project -eq 'FSharp.Core') { 'netstandard2.0', 'netstandard2.1', 'net10.0' } else { 'netstandard2.0', 'net10.0' }
+ foreach ($configuration in 'Debug', 'Release') {
+ foreach ($tfm in $tfms) {
+ $baselineTfm = if ($tfm -eq 'net10.0') { 'netcoreapp' } else { $tfm }
+ $id = "${project}_${configuration}_${baselineTfm}"
+ $dllDirectory = New-Item -ItemType Directory -Path "$Root\artifacts\bin\$project\$configuration\$tfm" -Force
+ $dll = New-Item -ItemType File -Path "$($dllDirectory.FullName)\$project.dll"
+ $baseline = "$source\ilverify_$id.bsl"
+ $outputs[$dll.FullName] = "Verified $id"
+ Set-Content $baseline $outputs[$dll.FullName]
+ if ($id -in $selected) {
+ $outputs[$dll.FullName] = "[IL]: Error [StackUnexpected]: [fixture.dll : Fixture::$id()][offset 0x00000001] Unexpected stack type."
+ $expected["ilverify_$id.bsl.actual"] = "[IL]: Error [StackUnexpected]: : Fixture::$id()][offset 0x00000001] Unexpected stack type."
+ switch ($Scenario) {
+ 'missing baseline' { Remove-Item -LiteralPath $baseline }
+ 'empty baseline' { [IO.File]::WriteAllBytes($baseline, [byte[]]@()) }
+ default { Set-Content $baseline '[IL]: Error [StackByRef]: : Fixture::M()] Expected ByRef.' }
+ }
+ }
+ }
+ }
+ }
+ $outputs | ConvertTo-Json | Set-Content "$Root\outputs.json"
+ Set-Content "$Root\run.ps1" @'
+$ErrorActionPreference = 'Stop'
+$env:TEST_UPDATE_BSL = $null
+Set-Location $PSScriptRoot
+$outputs = Get-Content .\outputs.json -Raw | ConvertFrom-Json -AsHashtable
+function dotnet {
+ $global:LASTEXITCODE = 0
+ switch ($args -join ' ') {
+ 'ilverify --version' { return 'ILVerify fixture' }
+ 'tool list -g' { return 'dotnet-ilverify 10.0.0 ilverify' }
+ '--list-runtimes' { return "Microsoft.NETCore.App 10.0.0 [$PSScriptRoot\runtime]" }
+ }
+ if ($args.Count -eq 8 -and ($args[0..2] -join ' ') -eq 'ilverify --sanity-checks --tokens' -and
+ $args[4] -eq '-r' -and $args[6] -eq '-r') {
+ $dll = [IO.Path]::GetFullPath($args[3])
+ if ($outputs.ContainsKey($dll)) {
+ if ($outputs[$dll] -match '^\[IL\]') { $global:LASTEXITCODE = 1 }
+ return $outputs[$dll]
+ }
+ }
+ throw "Unexpected dotnet request: $args"
+}
+& .\tests\ILVerify\ilverify.ps1
+exit $LASTEXITCODE
+'@
+ $output = & "$PSHOME\pwsh.exe" -NoProfile -NonInteractive -File "$Root\run.ps1" 2>&1
+ $producerExit = $LASTEXITCODE
+ $expectedExit = if ($Scenario -eq 'matching') { 0 } else { 1 }
+ $producerExit | Should Be $expectedExit
+ $message = switch ($Scenario) {
+ 'matching' { 'ILverify output matches baseline.' }
+ 'early failure' { 'Build failed for Debug configuration (last exit code: 7).' }
+ 'missing baseline' { 'Baseline file not found:' }
+ 'empty baseline' { 'Baseline file is empty:' }
+ default { 'ILverify output does not match baseline, differences:' }
+ }
+ ($output -join "`n") | Should Match ([regex]::Escape($message))
+ $actuals = @(Get-ChildItem -LiteralPath $source.FullName -Filter '*.bsl.actual' -File)
+ ($actuals.Name | Sort-Object) -join '|' | Should Be (($expected.Keys | Sort-Object) -join '|')
+ foreach ($actual in $actuals) {
+ (Get-Content -LiteralPath $actual.FullName -Raw) | Should Be ($expected[$actual.Name] + [Environment]::NewLine)
+ }
+ return [pscustomobject]@{ Root = $Root; Source = $source.FullName; Actuals = $actuals; ExitCode = $producerExit }
+}
+
+function Invoke-Collector([string]$Root, [int]$Attempt = 1) {
+ $step = Get-ILVerifyStep 'Stage ILVerify actual baselines'
+ $body = [regex]::Match($step, '(?ms)^ {10}- pwsh: \|\r?\n(?(?: {14}[^\r\n]*\r?\n|\r?\n)+)')
+ $body.Success | Should Be $true
+ $script = $body.Groups['body'].Value -replace '(?m)^ {14}', ''
+ $script = $script.Replace('$(Build.SourcesDirectory)', $Root).
+ Replace('$(Build.ArtifactStagingDirectory)', "$caseRoot\staging").
+ Replace('$(System.JobAttempt)', "$Attempt")
+ $errors = $null
+ [System.Management.Automation.Language.Parser]::ParseInput($script, [ref]$null, [ref]$errors) | Out-Null
+ $errors | Should BeNullOrEmpty
+ Set-Content "$caseRoot\collect.ps1" $script
+ $output = & "$PSHOME\pwsh.exe" -NoProfile -NonInteractive -File "$caseRoot\collect.ps1" 2>&1
+ $collectorExit = $LASTEXITCODE
+ $ready = @($output | ForEach-Object {
+ if ("$_" -match '^##vso\[task.setvariable variable=ILVerifyActualBaselinesFound\](true|false)$') { $Matches[1] }
+ })
+ return [pscustomobject]@{
+ ExitCode = $collectorExit
+ Output = $output -join "`n"
+ Ready = $ready -join ','
+ Destination = "$caseRoot\staging\ILVerifyActualBaselines-$Attempt"
+ }
+}
+
+Describe 'ILVerify actual baseline artifacts' {
+ BeforeEach {
+ $caseRoot = (New-Item -ItemType Directory -Path "$TestDrive\$([guid]::NewGuid())").FullName
+ }
+
+ AfterEach {
+ Remove-Item -LiteralPath $caseRoot -Recurse -Force
+ }
+
+ It 'runs the unchanged producer and generates the exact substantive mismatch actual' {
+ $producer = Invoke-Producer
+ $producer.ExitCode | Should Be 1
+ $producer.Actuals.Count | Should Be 1
+ $producer.Actuals[0].Name | Should Be 'ilverify_FSharp.Core_Debug_netstandard2.1.bsl.actual'
+ }
+
+ It 'wires only non-blocking, failure-only diagnostics immediately after Run ILVerify' {
+ $run = Get-ILVerifyStep 'Run ILVerify'
+ $run.Trim() | Should Be ('- pwsh: .\tests\ILVerify\ilverify.ps1' + "`n" +
+ ' displayName: Run ILVerify' + "`n" +
+ ' workingDirectory: $(Build.SourcesDirectory)')
+ $collector = Get-ILVerifyStep 'Stage ILVerify actual baselines'
+ $publisher = Get-ILVerifyStep 'Publish ILVerify actual baselines'
+ [array]::IndexOf($steps, $collector) | Should Be ([array]::IndexOf($steps, $run) + 1)
+ [array]::IndexOf($steps, $publisher) | Should Be ([array]::IndexOf($steps, $collector) + 1)
+ foreach ($step in $collector, $publisher) {
+ $step | Should Match '(?m)^ {12}continueOnError: true\r?$'
+ $step | Should Not Match '(?m)^ {12}enabled: false\r?$'
+ }
+ $publisher | Should Match '(?m)^ {10}- task: PublishPipelineArtifact@1\r?$'
+ $publisher | Should Match '(?m)^ {12}inputs:\r?$'
+ $target = '$(Build.ArtifactStagingDirectory)\ILVerifyActualBaselines-$(System.JobAttempt)'
+ $publisher | Should Match ('(?m)^ {14}targetPath: ' + [regex]::Escape("'$target'") + '\r?$')
+ $publisher | Should Match ('(?m)^ {14}artifactName: ' + [regex]::Escape("'ILVerify actual baselines Attempt " + '$(System.JobAttempt)' + "'") + '\r?$')
+ $collector | Should Match ([regex]::Escape($target))
+ $collector | Should Match ([regex]::Escape("`$ErrorActionPreference = 'Stop'"))
+ }
+
+ # Azure evaluates these exact expressions; local tests do not emulate its scheduler.
+ # https://learn.microsoft.com/azure/devops/pipelines/process/conditions
+ # failed() still sees the original failed step after a successful diagnostic step.
+ It 'requires failed job status even with stale true readiness; false or unset cannot publish' {
+ $collector = Get-ILVerifyStep 'Stage ILVerify actual baselines'
+ $publisher = Get-ILVerifyStep 'Publish ILVerify actual baselines'
+ [regex]::Match($collector, '(?m)^ {12}condition: (.+?)\r?$').Groups[1].Value | Should Be 'failed()'
+ [regex]::Match($publisher, '(?m)^ {12}condition: (.+?)\r?$').Groups[1].Value |
+ Should Be "and(failed(), eq(variables['ILVerifyActualBaselinesFound'], 'true'))"
+ }
+
+ It 'collects exact producer files for ' -TestCases @(
+ @{ Scenario = 'mismatch' }
+ @{ Scenario = 'missing baseline' }
+ @{ Scenario = 'empty baseline' }
+ @{ Scenario = 'multiple' }
+ @{ Scenario = 'matching' }
+ @{ Scenario = 'early failure' }
+ @{ Scenario = 'boundary' }
+ @{ Scenario = 'copy failure' }
+ ) {
+ param($Scenario)
+ $producer = Invoke-Producer $Scenario
+ if ($Scenario -eq 'boundary') {
+ foreach ($name in 'unrelated.bsl', 'unrelated.dll', 'unrelated.binlog', 'notes.txt', 'unrelated.actual') {
+ Set-Content "$($producer.Source)\$name" 'exclude me'
+ }
+ foreach ($name in 'something.bsl.actual', '.nuget\packages', 'nested') {
+ $directory = New-Item -ItemType Directory -Path "$($producer.Source)\$name" -Force
+ Set-Content "$directory\excluded.bsl.actual" 'exclude me'
+ }
+ Set-Content "$($producer.Root)\outside.bsl.actual" 'exclude me'
+ }
+ if ($Scenario -eq 'copy failure') {
+ New-Item -ItemType Directory -Path "$caseRoot\staging" | Out-Null
+ Set-Content "$caseRoot\staging\ILVerifyActualBaselines-1" 'not a directory'
+ }
+ $collected = Invoke-Collector $producer.Root
+ if ($Scenario -eq 'copy failure') {
+ $collected.ExitCode | Should Not Be 0
+ $collected.Ready | Should Be 'false'
+ $collected.Output | Should Match 'already exists'
+ $producer.ExitCode | Should Be 1
+ } else {
+ $collected.ExitCode | Should Be 0
+ if ($producer.Actuals.Count -eq 0) {
+ $collected.Ready | Should Be 'false'
+ $collected.Output | Should Match 'No ILVerify actual baselines'
+ Test-Path -LiteralPath $collected.Destination | Should Be $false
+ } else {
+ $collected.Ready | Should Be 'false,true'
+ $staged = @(Get-ChildItem -LiteralPath $collected.Destination -Recurse)
+ ($staged.FullName | ForEach-Object { [IO.Path]::GetRelativePath($collected.Destination, $_) } | Sort-Object) -join '|' |
+ Should Be (($producer.Actuals.Name | Sort-Object) -join '|')
+ foreach ($actual in $producer.Actuals) {
+ [Convert]::ToBase64String([IO.File]::ReadAllBytes("$($collected.Destination)\$($actual.Name)")) |
+ Should Be ([Convert]::ToBase64String([IO.File]::ReadAllBytes($actual.FullName)))
+ }
+ $producer.ExitCode | Should Be 1
+ }
+ }
+ }
+
+ It 'handles failure before the source directory exists without marking ready' {
+ $collected = Invoke-Collector "$caseRoot\absent"
+ $collected.ExitCode | Should Be 0
+ $collected.Ready | Should Be 'false'
+ $collected.Output | Should Match 'No ILVerify actual baselines'
+ Test-Path -LiteralPath $collected.Destination | Should Be $false
+ }
+
+ It 'isolates files left by a previous job attempt' {
+ $first = Invoke-Producer 'multiple' "$caseRoot\first"
+ $previous = Invoke-Collector $first.Root 1
+ $previous.ExitCode | Should Be 0
+ $second = Invoke-Producer 'retry' "$caseRoot\second"
+ $current = Invoke-Collector $second.Root 2
+ $current.ExitCode | Should Be 0
+ $current.Ready | Should Be 'false,true'
+ @(Get-ChildItem -LiteralPath $previous.Destination -File).Count | Should Be 3
+ @(Get-ChildItem -LiteralPath $current.Destination -File).Count | Should Be 1
+ (Get-ChildItem -LiteralPath $current.Destination -File).Name | Should Be $second.Actuals[0].Name
+ }
+}
From fbee2a486979cda1bb5e23821ab60bc6a2d3d280 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 12 Nov 2026 12:11:13 +0000
Subject: [PATCH 3/6] Remove obsolete DevDiv insertion variable group (#20967)
AB#13599
Co-authored-by: Missy Messa
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3d24c7a1-de44-482c-aa6a-eedc4a0cae5b
---
azure-pipelines.yml | 1 -
1 file changed, 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 317d5099b53..ea4a4fa7bcd 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -124,7 +124,6 @@ extends:
zipSources: false
variables:
- - group: DotNet-DevDiv-Insertion-Workflow-Variables
- name: _SignType
value: Real
steps:
From 30e8ec97536eba3ade54414d813894538fe7a466 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 13 Nov 2026 13:29:26 +0100
Subject: [PATCH 4/6] [release/dev18.11] Unpin MSBuild dependencies to restore
VMR source-build coherency (#20969)
* Unpin MSBuild deps and flow to VS 18.11 (18.11.0-1.26417.9)
The Microsoft.Build.* deps were pinned at 18.10.0-1.26370.18 to keep them on
the net10.0 asset line while the product targeted net10.0. The product moved to
net11.0 (#20080) before the pin landed, so the pin's own unpin condition was
already met. In the VMR source-only build this pin causes prebuilts: the VMR
source-builds MSBuild on the 18.11.0 line (VS 18.11 channel), so an 18.10.0
reference cannot be satisfied in-tree and leaks to an external feed, dragging
its net10 System.* transitive closure with it.
Unpin the four Microsoft.Build.* deps and let the existing msbuild -> fsharp
VS 18.11 subscription flow the coherent build (darc update-dependencies), and
bump the CPM runtime floor 10.0.9 -> 10.0.10 since net11 MSBuild 18.11 pulls
System.Collections.Immutable / System.Reflection.Metadata / Security.Cryptography.Xml
at >= 10.0.10. VS 18.11 is the same channel the VMR (main and release/11.0.1xx)
consumes MSBuild from, restoring coherency and removing the prebuilts.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3a3d99e1-5b05-409a-afd5-c8d9676360f4
* Build EndToEndBuildTests with -ci to avoid flaky UpdateXlf failure
The EndToEndBuildTests job ran .\Build.cmd -c Release -pack without -ci, so
Arcade treated it as a dev build and defaulted UpdateXlfOnBuild=true. That runs
the XliffTasks UpdateXlf target after each inner-TFM build of the multi-targeted
FSharp.Core, which intermittently fails with 'MSB4057: The target "UpdateXlf"
does not exist' when the XliffTasks import has not been applied for that inner
build yet. The same flake hits main (e.g. build 1555456). Adding -ci keeps
UpdateXlfOnBuild off, matching every other build job in this pipeline (including
the -ci -pack AheadOfTime job).
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3a3d99e1-5b05-409a-afd5-c8d9676360f4
---------
Co-authored-by: Tomas Grosup
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3a3d99e1-5b05-409a-afd5-c8d9676360f4
---
azure-pipelines-PR.yml | 2 +-
eng/Version.Details.props | 11 +++++------
eng/Version.Details.xml | 20 ++++++++------------
eng/Versions.props | 8 ++++----
4 files changed, 18 insertions(+), 23 deletions(-)
diff --git a/azure-pipelines-PR.yml b/azure-pipelines-PR.yml
index 1b34c679073..25c00ccc3f0 100644
--- a/azure-pipelines-PR.yml
+++ b/azure-pipelines-PR.yml
@@ -559,7 +559,7 @@ stages:
steps:
- checkout: self
clean: true
- - script: .\Build.cmd -c Release -pack
+ - script: .\Build.cmd -ci -c Release -pack
env:
NativeToolsOnMachine: true
- script: .\eng\common\dotnet.cmd fsi .\tests\AheadOfTime\NetPackage\VerifyNetPackage.fsx -- .\artifacts\packages\Release
diff --git a/eng/Version.Details.props b/eng/Version.Details.props
index a22ddfcc573..51ddbad59a2 100644
--- a/eng/Version.Details.props
+++ b/eng/Version.Details.props
@@ -7,12 +7,11 @@ This file should be imported by eng/Versions.props
11.0.0-beta.26369.1
-
- 18.10.0-1.26370.18
- 18.10.0-1.26370.18
- 18.10.0-1.26370.18
- 18.10.0-1.26370.18
+
+ 18.11.0-1.26417.9
+ 18.11.0-1.26417.9
+ 18.11.0-1.26417.9
+ 18.11.0-1.26417.9
1.0.0-prerelease.26407.1
1.0.0-prerelease.26407.1
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 2d036cf1e60..dd7fab36c26 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -2,25 +2,21 @@
-
-
+
https://github.com/dotnet/msbuild
- eae54023463db15e9a9081f35a959c9162797643
+ 842fc358af70a4ef049ba4052dab78882af557ca
-
+
https://github.com/dotnet/msbuild
- eae54023463db15e9a9081f35a959c9162797643
+ 842fc358af70a4ef049ba4052dab78882af557ca
-
+
https://github.com/dotnet/msbuild
- eae54023463db15e9a9081f35a959c9162797643
+ 842fc358af70a4ef049ba4052dab78882af557ca
-
+
https://github.com/dotnet/msbuild
- eae54023463db15e9a9081f35a959c9162797643
+ 842fc358af70a4ef049ba4052dab78882af557ca
https://github.com/dotnet/roslyn
diff --git a/eng/Versions.props b/eng/Versions.props
index e4e08b4a593..10381bcfb3a 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -89,13 +89,13 @@
4.6.3
6.1.2
-
$(SystemSecurityCryptographyXmlVersion)
$(SystemCollectionsImmutableVersion)
@@ -104,7 +104,7 @@
- 10.0.9
+ 10.0.10
$(SystemRuntimeCentralFloorVersion)
$(SystemRuntimeCentralFloorVersion)
$(SystemRuntimeCentralFloorVersion)
From 687b4e1ec521d558366d5cb786a2d1da1b72e601 Mon Sep 17 00:00:00 2001
From: Tomas Grosup
Date: Mon, 16 Nov 2026 19:04:51 +0100
Subject: [PATCH 5/6] Update VSInsertionTargetBranchName for 18.11 LTSC
(#20917)
Co-authored-by: Adam Boniecki <20281641+abonie@users.noreply.github.com>
---
azure-pipelines.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index ea4a4fa7bcd..fafa4294644 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -33,7 +33,7 @@ variables:
# VS Insertion branch name (NOT the same as F# branch)
# ( for main we insert into VS main and for all *previous* releases we insert into corresponding VS release),
- name: VSInsertionTargetBranchName
- value: rel/insiders
+ value: rel/d18.11-ltsc
- name: _TeamName
value: FSharp
- name: TeamName
From a4138a05403a7c92d374dcf81975c5621171011d Mon Sep 17 00:00:00 2001
From: "dotnet-maestro[bot]"
<42748379+dotnet-maestro[bot]@users.noreply.github.com>
Date: Tue, 17 Nov 2026 20:48:46 +0000
Subject: [PATCH 6/6] Update dependencies from
https://github.com/dotnet/msbuild build 20261110.2 (#20982)
On relative base path root
Microsoft.Build , Microsoft.Build.Framework , Microsoft.Build.Tasks.Core , Microsoft.Build.Utilities.Core From Version 18.11.0-1.26417.9 -> To Version 18.11.2-1.26560.2
Co-authored-by: dotnet-maestro[bot]
---
eng/Version.Details.props | 8 ++++----
eng/Version.Details.xml | 16 ++++++++--------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/eng/Version.Details.props b/eng/Version.Details.props
index 51ddbad59a2..7d3d1a7ac79 100644
--- a/eng/Version.Details.props
+++ b/eng/Version.Details.props
@@ -8,10 +8,10 @@ This file should be imported by eng/Versions.props
11.0.0-beta.26369.1
- 18.11.0-1.26417.9
- 18.11.0-1.26417.9
- 18.11.0-1.26417.9
- 18.11.0-1.26417.9
+ 18.11.2-1.26560.2
+ 18.11.2-1.26560.2
+ 18.11.2-1.26560.2
+ 18.11.2-1.26560.2
1.0.0-prerelease.26407.1
1.0.0-prerelease.26407.1
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index dd7fab36c26..1553203cd96 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -2,21 +2,21 @@
-
+
https://github.com/dotnet/msbuild
- 842fc358af70a4ef049ba4052dab78882af557ca
+ 1c842567c39aca77ab2348145428e3f9737ab9fd
-
+
https://github.com/dotnet/msbuild
- 842fc358af70a4ef049ba4052dab78882af557ca
+ 1c842567c39aca77ab2348145428e3f9737ab9fd
-
+
https://github.com/dotnet/msbuild
- 842fc358af70a4ef049ba4052dab78882af557ca
+ 1c842567c39aca77ab2348145428e3f9737ab9fd
-
+
https://github.com/dotnet/msbuild
- 842fc358af70a4ef049ba4052dab78882af557ca
+ 1c842567c39aca77ab2348145428e3f9737ab9fd
https://github.com/dotnet/roslyn