Skip to content

Commit 2dea164

Browse files
[release/10.0.1xx] Source code updates from dotnet/roslyn (#2486)
[release/10.0.1xx] Source code updates from dotnet/roslyn
1 parent 8e6f96b commit 2dea164

File tree

301 files changed

+4372
-3814
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+4372
-3814
lines changed

src/roslyn/azure-pipelines-official.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,13 @@ extends:
290290

291291
- task: MicroBuildSigningPlugin@4
292292
inputs:
293-
signType: $(SignType)
293+
signType: ${{ parameters.SignType }}
294294
zipSources: false
295295
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
296296
# Set ConnectedPMEServiceName if the build is a CI build, otherwise it is not needed
297297
${{ if eq(variables['Build.Reason'], 'IndividualCI') }}:
298298
ConnectedPMEServiceName: 248d384a-b39b-46e3-8ad5-c2c210d5e7ca
299-
condition: and(succeeded(), in(variables['SignType'], 'test', 'real'))
299+
condition: and(succeeded(), in('${{ parameters.SignType }}', 'test', 'real'))
300300

301301
- download: profilingInputs
302302
artifact: merged mibc
@@ -324,7 +324,7 @@ extends:
324324
/p:RepositoryName=$(Build.Repository.Name)
325325
/p:VisualStudioDropName=$(VisualStudio.DropName)
326326
/p:VSCodeOptimizationDataRoot="$(VSCodeOptimizationDataRoot)"
327-
/p:DotNetSignType=$(SignType)
327+
/p:DotNetSignType=${{ parameters.SignType }}
328328
/p:DotnetPublishUsingPipelines=true
329329
/p:IgnoreIbcMergeErrors=true
330330
/p:GenerateSbom=true
@@ -403,7 +403,7 @@ extends:
403403
componentPassword: $(dn-bot-dnceng-build-e-code-full-release-e-packaging-r)
404404
componentBuildProjectName: internal
405405
sourceBranch: "$(ComponentBranchName)"
406-
publishDataURI: "https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&api-version=6.0"
406+
publishDataURI: "https://dev.azure.com/dnceng/internal/_apis/git/repositories/dotnet-roslyn/items?path=eng/config/PublishData.json&version=$(ComponentBranchName)&api-version=6.0"
407407
publishDataAccessToken: "$(System.AccessToken)"
408408
dropPath: '$(Pipeline.Workspace)\VSSetup'
409409
cherryPick: ${{ parameters.VisualStudioCherryPickSHA }}

src/roslyn/azure-pipelines-pr-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ extends:
357357
vsBranchName: ${{ parameters.VisualStudioBranchName }}
358358
titlePrefix: ${{ parameters.OptionalTitlePrefix }}
359359
sourceBranch: $(ComponentBranchName)
360-
publishDataURI: "https://raw.githubusercontent.com/dotnet/roslyn/main/eng/config/PublishData.json"
360+
publishDataURI: "https://raw.githubusercontent.com/dotnet/roslyn/$(ComponentBranchName)/eng/config/PublishData.json"
361361
queueSpeedometerValidation: true
362362
dropPath: '$(Pipeline.Workspace)\VSSetup'
363363
retainInsertedBuild: false

src/roslyn/docs/contributing/Compiler Test Plan.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This document provides guidance for thinking about language interactions and tes
99
- BCL (including mono) and other customer impact
1010
- Determinism
1111
- Loading from metadata (source vs. loaded from metadata)
12-
- Public interface of compiler APIs (including semantic model APIs listed below):
12+
- Public compiler APIs (including semantic model and other APIs listed below):
1313
- GetDeclaredSymbol
1414
- GetEnclosingSymbol
1515
- GetSymbolInfo
@@ -29,6 +29,7 @@ This document provides guidance for thinking about language interactions and tes
2929
- ClassifyConversion
3030
- GetOperation (`IOperation`)
3131
- GetCFG (`ControlFlowGraph`)
32+
- DocumentationCommentId APIs
3233
- VB/F# interop
3334
- C++/CLI interop (particularly for metadata format changes, e.g. DIMs, static abstracts in interfaces, or generic attributes)
3435
- Performance and stress testing

src/roslyn/eng/Version.Details.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This file should be imported by eng/Versions.props
99
<MicrosoftCodeAnalysisPackageVersion>3.11.0</MicrosoftCodeAnalysisPackageVersion>
1010
<MicrosoftNetCompilersToolsetPackageVersion>4.10.0-1.24061.4</MicrosoftNetCompilersToolsetPackageVersion>
1111
<!-- dotnet/dotnet dependencies -->
12-
<SystemCommandLinePackageVersion>2.0.0-rc.2.25462.117</SystemCommandLinePackageVersion>
12+
<SystemCommandLinePackageVersion>2.0.0-rc.2.25467.107</SystemCommandLinePackageVersion>
1313
<!-- dotnet/runtime dependencies -->
1414
<MicrosoftBclAsyncInterfacesPackageVersion>9.0.0</MicrosoftBclAsyncInterfacesPackageVersion>
1515
<MicrosoftExtensionsConfigurationPackageVersion>9.0.0</MicrosoftExtensionsConfigurationPackageVersion>
@@ -38,9 +38,9 @@ This file should be imported by eng/Versions.props
3838
<SystemThreadingTasksDataflowPackageVersion>9.0.0</SystemThreadingTasksDataflowPackageVersion>
3939
<SystemWindowsExtensionsPackageVersion>9.0.0</SystemWindowsExtensionsPackageVersion>
4040
<!-- dotnet/arcade dependencies -->
41-
<MicrosoftDotNetArcadeSdkPackageVersion>11.0.0-beta.25462.2</MicrosoftDotNetArcadeSdkPackageVersion>
42-
<MicrosoftDotNetHelixSdkPackageVersion>11.0.0-beta.25462.2</MicrosoftDotNetHelixSdkPackageVersion>
43-
<MicrosoftDotNetXliffTasksPackageVersion>11.0.0-beta.25462.2</MicrosoftDotNetXliffTasksPackageVersion>
41+
<MicrosoftDotNetArcadeSdkPackageVersion>11.0.0-beta.25467.6</MicrosoftDotNetArcadeSdkPackageVersion>
42+
<MicrosoftDotNetHelixSdkPackageVersion>11.0.0-beta.25467.6</MicrosoftDotNetHelixSdkPackageVersion>
43+
<MicrosoftDotNetXliffTasksPackageVersion>11.0.0-beta.25467.6</MicrosoftDotNetXliffTasksPackageVersion>
4444
<!-- dotnet/symreader dependencies -->
4545
<MicrosoftDiaSymReaderPackageVersion>2.0.0</MicrosoftDiaSymReaderPackageVersion>
4646
<!-- dotnet/roslyn-analyzers dependencies -->

src/roslyn/eng/Version.Details.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Dependencies>
3-
<Source Uri="https://github.com/dotnet/dotnet" Mapping="roslyn" Sha="ee760c42a6df115208fe2262d358be6d4003e55f" BarId="283077" />
3+
<Source Uri="https://github.com/dotnet/dotnet" Mapping="roslyn" Sha="e533cfad385ba4f0ec96e35ad3d485dc13581906" BarId="283666" />
44
<ProductDependencies>
55
<!-- RoslynAnalyzers reference older builds of Roslyn and this is necessary for SourceBuild. -->
66
<Dependency Name="Microsoft.CodeAnalysis" Version="3.11.0">
77
<Uri>https://github.com/dotnet/roslyn</Uri>
88
<Sha>ae1fff344d46976624e68ae17164e0607ab68b10</Sha>
99
</Dependency>
10-
<Dependency Name="System.CommandLine" Version="2.0.0-rc.2.25462.117">
10+
<Dependency Name="System.CommandLine" Version="2.0.0-rc.2.25467.107">
1111
<Uri>https://github.com/dotnet/dotnet</Uri>
12-
<Sha>ee760c42a6df115208fe2262d358be6d4003e55f</Sha>
12+
<Sha>e533cfad385ba4f0ec96e35ad3d485dc13581906</Sha>
1313
</Dependency>
1414
<!-- Necessary for source-build. This allows the live version of the package to be used by source-build. -->
1515
<Dependency Name="Microsoft.Bcl.AsyncInterfaces" Version="9.0.0">
@@ -115,13 +115,13 @@
115115
</Dependency>
116116
</ProductDependencies>
117117
<ToolsetDependencies>
118-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="11.0.0-beta.25462.2">
118+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="11.0.0-beta.25467.6">
119119
<Uri>https://github.com/dotnet/arcade</Uri>
120-
<Sha>c32cd132a730a7b9f947498b2ae75dbdc6785456</Sha>
120+
<Sha>06f338fe9a2a14ebb99d23d96818faaf2bccc663</Sha>
121121
</Dependency>
122-
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="11.0.0-beta.25462.2">
122+
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="11.0.0-beta.25467.6">
123123
<Uri>https://github.com/dotnet/arcade</Uri>
124-
<Sha>c32cd132a730a7b9f947498b2ae75dbdc6785456</Sha>
124+
<Sha>06f338fe9a2a14ebb99d23d96818faaf2bccc663</Sha>
125125
</Dependency>
126126
<Dependency Name="Microsoft.DiaSymReader" Version="2.0.0">
127127
<Uri>https://github.com/dotnet/symreader</Uri>
@@ -131,9 +131,9 @@
131131
<Uri>https://github.com/dotnet/roslyn</Uri>
132132
<Sha>5d10d428050c0d6afef30a072c4ae68776621877</Sha>
133133
</Dependency>
134-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="11.0.0-beta.25462.2">
134+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="11.0.0-beta.25467.6">
135135
<Uri>https://github.com/dotnet/arcade</Uri>
136-
<Sha>c32cd132a730a7b9f947498b2ae75dbdc6785456</Sha>
136+
<Sha>06f338fe9a2a14ebb99d23d96818faaf2bccc663</Sha>
137137
</Dependency>
138138
<Dependency Name="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.0-preview.25375.1">
139139
<Uri>https://github.com/dotnet/roslyn-analyzers</Uri>

src/roslyn/eng/build-utils.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ $ErrorActionPreference="Stop"
88

99
$VSSetupDir = Join-Path $ArtifactsDir "VSSetup\$configuration"
1010
$PackagesDir = Join-Path $ArtifactsDir "packages\$configuration"
11-
$PublishDataUrl = "https://raw.githubusercontent.com/dotnet/roslyn/main/eng/config/PublishData.json"
1211

1312
$binaryLog = if (Test-Path variable:binaryLog) { $binaryLog } else { $false }
1413
$nodeReuse = if (Test-Path variable:nodeReuse) { $nodeReuse } else { $false }
@@ -27,8 +26,10 @@ function GetPublishData() {
2726
return $global:_PublishData
2827
}
2928

30-
Write-Host "Downloading $PublishDataUrl"
31-
$content = (Invoke-WebRequest -Uri $PublishDataUrl -UseBasicParsing).Content
29+
$publishDataFile = Join-Path $PSScriptRoot "config\PublishData.json"
30+
31+
Write-Host "Reading $publishDataFile"
32+
$content = Get-Content -Path $publishDataFile -Raw
3233

3334
return $global:_PublishData = ConvertFrom-Json $content
3435
}

src/roslyn/eng/common/SetupNugetSources.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ if ($dotnet31Source -ne $null) {
157157
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username $userName -pwd $Password
158158
}
159159

160-
$dotnetVersions = @('5','6','7','8','9')
160+
$dotnetVersions = @('5','6','7','8','9','10')
161161

162162
foreach ($dotnetVersion in $dotnetVersions) {
163163
$feedPrefix = "dotnet" + $dotnetVersion;

src/roslyn/eng/common/SetupNugetSources.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if [ "$?" == "0" ]; then
9999
PackageSources+=('dotnet3.1-internal-transport')
100100
fi
101101

102-
DotNetVersions=('5' '6' '7' '8' '9')
102+
DotNetVersions=('5' '6' '7' '8' '9' '10')
103103

104104
for DotNetVersion in ${DotNetVersions[@]} ; do
105105
FeedPrefix="dotnet${DotNetVersion}";

src/roslyn/eng/targets/GeneratePkgDef.targets

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,18 @@
8686
</_FileContentEntries>
8787

8888
<PkgDefFileContent Include="@(_FileContentEntries->'%(FullFilePath)')" />
89+
90+
<!-- Ensure we add these to the fast-up-to-date-check collections -->
91+
<UpToDateCheckInput Include="@(PkgDefFileContent)" Set="PkgdefFiles" />
92+
<UpToDateCheckOutput Include="$(_GeneratePkgDefOutputFile)" Set="PkgdefFiles" />
8993
</ItemGroup>
9094
</Target>
9195

96+
<PropertyGroup>
97+
<CollectUpToDateCheckInputDesignTimeDependsOn>$(CollectUpToDateCheckInputDesignTimeDependsOn);_SetGeneratePkgDefInputsOutputs</CollectUpToDateCheckInputDesignTimeDependsOn>
98+
<CollectUpToDateCheckOutputDesignTimeDependsOn>$(CollectUpToDateCheckOutputDesignTimeDependsOn);_SetGeneratePkgDefInputsOutputs</CollectUpToDateCheckOutputDesignTimeDependsOn>
99+
</PropertyGroup>
100+
92101
<!--
93102
Initializes metadata of PkgDefBrokeredService items.
94103
-->
@@ -293,12 +302,10 @@
293302
<Error Text="GeneratePkgDefFile is true but the project did not produce any entries (PkgDef* items) to be written to pkgdef file"
294303
Condition="'@(_PkgDefLines)' == ''"/>
295304

296-
<!-- Write final pkgdef content. If the CTO file was changed, touch the pkgdef file to cause a re-merge (see VSSDK targets). -->
297305
<WriteLinesToFile File="$(_GeneratePkgDefOutputFile)"
298306
Lines="@(_PkgDefLines)"
299307
Overwrite="true"
300-
Encoding="UTF-8"
301-
WriteOnlyWhenDifferent="!$([MSBuild]::ValueOrDefault('$(CTOFileHasChanged)', 'false'))" />
308+
Encoding="UTF-8" />
302309
<ItemGroup>
303310
<FileWrites Include="$(_GeneratePkgDefOutputFile)" />
304311
</ItemGroup>

src/roslyn/eng/targets/VisualStudio.FastUpToDateCheckWorkarounds.targets

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
33
<Project>
4-
5-
<!-- The 9.0 Arcade targets we are consuming don't have Sets specified for the items, and don't include all items correctly. This overrides
6-
those targets so they don't interfere. These two empty targets can be deleted when we've removed the support from Arcade in favor of
7-
built-in support in the VS SDK, and we are consuming that support in this repo. -->
8-
9-
<Target Name="CollectVsixUpToDateCheckInput">
10-
</Target>
11-
12-
<Target Name="CollectVsixUpToDateCheckBuilt">
13-
</Target>
14-
4+
<!-- Add a workaround for https://github.com/dotnet/project-system/issues/9651 until we decide what we want to do there long term. -->
155
<PropertyGroup>
166
<CollectUpToDateCheckInputDesignTimeDependsOn>$(CollectUpToDateCheckInputDesignTimeDependsOn);RemoveBuildOutputSourceItems</CollectUpToDateCheckInputDesignTimeDependsOn>
177
</PropertyGroup>
188

19-
<!-- Add a workaround for https://github.com/dotnet/project-system/issues/9651 until we decide what we want to do there long term. -->
209
<Target Name="RemoveBuildOutputSourceItems" DependsOnTargets="AddUpToDateCheckVSIXSourceItems" Condition="'$(CreateVsixContainer)' == 'true'">
2110
<ItemGroup>
2211
<_ItemsInObjDirectory Include="$(IntermediateOutputPath)\**\*" Set="VsixItems" />

0 commit comments

Comments
 (0)