Skip to content

Commit 65391c5

Browse files
[automated] Merge branch 'vs17.12' => 'vs17.14' (#11991)
2 parents c95bb4f + ae6ec24 commit 65391c5

File tree

18 files changed

+115
-34
lines changed

18 files changed

+115
-34
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ dotnet_diagnostic.IDE0037.severity = suggestion
276276
# Use local function
277277
dotnet_diagnostic.IDE0039.severity = suggestion
278278

279+
# Accessibility modifiers required
280+
dotnet_diagnostic.IDE0040.severity = none
281+
279282
# Null check can be simplified
280283
dotnet_diagnostic.IDE0041.severity = suggestion
281284

@@ -298,6 +301,12 @@ dotnet_diagnostic.IDE0048.severity = suggestion
298301
# Member name can be simplified
299302
dotnet_diagnostic.IDE0049.severity = suggestion
300303

304+
# Private member is unused
305+
dotnet_diagnostic.IDE0051.severity = none
306+
307+
# Remove unread private member
308+
dotnet_diagnostic.IDE0052.severity = none
309+
301310
# Use compound assignment
302311
dotnet_diagnostic.IDE0054.severity = suggestion
303312

@@ -415,6 +424,9 @@ dotnet_diagnostic.IDE0301.severity = suggestion
415424
dotnet_diagnostic.IDE0305.severity = suggestion
416425
dotnet_diagnostic.IDE0306.severity = suggestion
417426

427+
# Use implicitly typed lambda
428+
dotnet_diagnostic.IDE0350.severity = none
429+
418430
# Temporarily disable SA1010 "Opening square brackets should not be preceded by a space" until https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3687 is fixed
419431
dotnet_diagnostic.SA1010.severity = none
420432

.vsts-dotnet-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ variables:
1515

1616
jobs:
1717
- job: CheckVersionBumpOnReleaseBranches
18+
condition: startsWith(variables['System.PullRequest.TargetBranch'], 'vs')
1819
displayName: "Check Version Bump On Release Branches"
1920
steps:
2021
- powershell: |

.vsts-dotnet.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ variables:
3737
value: true # Enable loc for vs17.14
3838
- name: Codeql.Enabled
3939
value: true
40+
# ensures we don't build and push experimental versions to official feeds as release versions
41+
- name: IsExperimental
42+
value: ${{ startsWith(variables['Build.SourceBranch'], 'refs/heads/exp/') }}
43+
- group: DotNet-MSBuild-SDLValidation-Params
4044
- group: AzureDevOps-Artifact-Feeds-Pats
4145
- name: cfsNugetWarnLevel
4246
value: warn
@@ -179,6 +183,7 @@ extends:
179183
/p:DotNetPublishUsingPipelines=true
180184
/p:VisualStudioIbcDrop=$(OptProfDrop)
181185
/p:GenerateSbom=true
186+
/p:SuppressFinalPackageVersion=$(IsExperimental)
182187
displayName: Build
183188
condition: succeeded()
184189

azure-pipelines/vs-insertion-experimental.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,41 @@ extends:
104104
$branch = $branchSegments[-1]
105105
Write-Host "Setting drops branch to '$branch'"
106106
Write-Host "##vso[task.setvariable variable=SourceBranchName]$branch"
107+
108+
- task: Powershell@2
109+
name: DetermineTargetBranch
110+
displayName: Determine target branch
111+
inputs:
112+
targetType: inline
113+
script: |
114+
# Extract VS version from branch name if it follows exp/vsXX.Y-somename pattern
115+
$fullBranch = "$(resources.pipeline.MSBuild.sourceBranch)"
116+
$parameterTargetBranch = "${{ parameters.TargetBranch }}"
117+
$detectedTarget = "main" # Default target branch
118+
119+
# Try to match the pattern with regex
120+
if ($fullBranch -match "exp/vs(\d+)\.(\d+).*") {
121+
$major = $matches[1]
122+
$minor = $matches[2]
123+
$targetBranch = "rel/d$major.$minor"
124+
Write-Host "Detected version pattern in branch: $major.$minor"
125+
Write-Host "Setting target branch to $targetBranch"
126+
$detectedTarget = $targetBranch
127+
} else {
128+
Write-Host "No version pattern detected in branch, using default target: main"
129+
}
130+
131+
# Determine which target branch to use based on build reason
132+
$finalTargetBranch = $parameterTargetBranch
133+
if ("$(Build.Reason)" -eq "ResourceTrigger" -or "$(Build.Reason)" -eq "PipelineCompletedTrigger") {
134+
Write-Host "Build was triggered automatically, using detected target branch: $detectedTarget"
135+
$finalTargetBranch = $detectedTarget
136+
} else {
137+
Write-Host "Build was triggered manually, using parameter target branch: $parameterTargetBranch"
138+
}
139+
140+
Write-Host "##vso[task.setvariable variable=FinalTargetBranch]$finalTargetBranch"
141+
107142
- task: Powershell@2
108143
name: PwshMungeExternalAPIsPkgVersion
109144
displayName: Munge ExternalAPIs package version
@@ -135,7 +170,7 @@ extends:
135170
LinkWorkItemsToPR: true
136171
TeamName: $(TeamName)
137172
TeamEmail: $(TeamEmail)
138-
TargetBranch: ${{ parameters.TargetBranch }}
173+
TargetBranch: $(FinalTargetBranch)
139174
InsertionPayloadName: $(InsertPayloadName)
140175
PackagePropsValues: VS.ExternalAPIs.MSBuild=$(MSBuild_ExtApisPackageVersion);Microsoft.Build=$(MicrosoftNETStringToolsPackageVersion);Microsoft.Build.Framework=$(MicrosoftNETStringToolsPackageVersion);Microsoft.Build.Tasks.Core=$(MicrosoftNETStringToolsPackageVersion);Microsoft.Build.Utilities.Core=$(MicrosoftNETStringToolsPackageVersion);Microsoft.NET.StringTools=$(MicrosoftNETStringToolsPackageVersion)
141176
InsertionDescription: $(InsertDescription)

eng/Version.Details.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@
123123
</Dependency>
124124
</ProductDependencies>
125125
<ToolsetDependencies>
126-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.25111.5">
126+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.25302.2">
127127
<Uri>https://github.com/dotnet/arcade</Uri>
128-
<Sha>5da211e1c42254cb35e7ef3d5a8428fb24853169</Sha>
128+
<Sha>0d52a8b262d35fa2fde84e398cb2e791b8454bd2</Sha>
129129
</Dependency>
130130
<!-- Intermediate is necessary for source build. -->
131-
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="9.0.0-beta.25111.5">
131+
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="9.0.0-beta.25302.2">
132132
<Uri>https://github.com/dotnet/arcade</Uri>
133-
<Sha>5da211e1c42254cb35e7ef3d5a8428fb24853169</Sha>
133+
<Sha>0d52a8b262d35fa2fde84e398cb2e791b8454bd2</Sha>
134134
<SourceBuild RepoName="arcade" ManagedOnly="true" />
135135
</Dependency>
136-
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="9.0.0-beta.25111.5">
136+
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="9.0.0-beta.25302.2">
137137
<Uri>https://github.com/dotnet/arcade</Uri>
138-
<Sha>5da211e1c42254cb35e7ef3d5a8428fb24853169</Sha>
138+
<Sha>0d52a8b262d35fa2fde84e398cb2e791b8454bd2</Sha>
139139
</Dependency>
140140
<Dependency Name="NuGet.Build.Tasks" Version="6.14.0-rc.116">
141141
<Uri>https://github.com/nuget/nuget.client</Uri>
@@ -150,9 +150,9 @@
150150
<Sha>46223204b646f96104bac46f9dfa4959da9d86ac</Sha>
151151
<SourceBuild RepoName="roslyn" ManagedOnly="true" />
152152
</Dependency>
153-
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="9.0.0-beta.25111.5">
153+
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="9.0.0-beta.25302.2">
154154
<Uri>https://github.com/dotnet/arcade</Uri>
155-
<Sha>5da211e1c42254cb35e7ef3d5a8428fb24853169</Sha>
155+
<Sha>0d52a8b262d35fa2fde84e398cb2e791b8454bd2</Sha>
156156
</Dependency>
157157
</ToolsetDependencies>
158158
</Dependencies>

eng/Versions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the MIT license. See License.txt in the project root for full license information. -->
33
<Project>
44
<PropertyGroup>
5-
<VersionPrefix>17.14.12</VersionPrefix><DotNetFinalVersionKind>release</DotNetFinalVersionKind>
5+
<VersionPrefix>17.14.13</VersionPrefix><DotNetFinalVersionKind>release</DotNetFinalVersionKind>
66
<PackageValidationBaselineVersion>17.13.9</PackageValidationBaselineVersion>
77
<AssemblyVersion>15.1.0.0</AssemblyVersion>
88
<PreReleaseVersionLabel>servicing</PreReleaseVersionLabel>
@@ -68,12 +68,12 @@
6868
Otherwise, this version of dotnet will not be installed and the build will error out. -->
6969
<DotNetCliVersion>$([System.Text.RegularExpressions.Regex]::Match($([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)..\global.json')), '"dotnet": "([^"]*)"').Groups.get_Item(1))</DotNetCliVersion>
7070
<MicrosoftCodeAnalysisCollectionsVersion>4.2.0-1.22102.8</MicrosoftCodeAnalysisCollectionsVersion>
71-
<MicrosoftDotNetXUnitExtensionsVersion>9.0.0-beta.25111.5</MicrosoftDotNetXUnitExtensionsVersion>
71+
<MicrosoftDotNetXUnitExtensionsVersion>9.0.0-beta.25302.2</MicrosoftDotNetXUnitExtensionsVersion>
7272
<MicrosoftNetCompilersToolsetVersion>4.14.0-3.25157.4</MicrosoftNetCompilersToolsetVersion>
7373
<NuGetBuildTasksVersion>6.14.0-rc.116</NuGetBuildTasksVersion>
7474
</PropertyGroup>
7575
<PropertyGroup Condition="!$(TargetFramework.StartsWith('net4'))">
76-
<BootstrapSdkVersion>9.0.200-preview.0.24603.3</BootstrapSdkVersion>
76+
<BootstrapSdkVersion>9.0.301</BootstrapSdkVersion>
7777
</PropertyGroup>
7878
<Target Name="OverrideArcadeFileVersion" AfterTargets="_InitializeAssemblyVersion">
7979
<!-- See https://github.com/dotnet/arcade/issues/3386

eng/common/core-templates/job/source-build.yml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/common/core-templates/job/source-index-stage1.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/common/core-templates/post-build/post-build.yml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/common/core-templates/steps/generate-sbom.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)