Skip to content

Commit 5513e19

Browse files
authored
Merge pull request #1473 from microsoft/main
Merge 'main' into 'release-cpptools'
2 parents 8cf60fb + 15173ad commit 5513e19

File tree

53 files changed

+1659
-166
lines changed

Some content is hidden

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

53 files changed

+1659
-166
lines changed

.github/workflows/Build-And-Test.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
2828

2929
- name: Install .NET Core
30-
uses: actions/setup-dotnet@v3
30+
uses: actions/setup-dotnet@v4
3131
with:
32-
dotnet-version: 6.0.x
32+
dotnet-version: 8.0.x
3333

3434
- name: Setup MSBuild.exe
35-
uses: microsoft/setup-msbuild@v1.1
35+
uses: microsoft/setup-msbuild@v2
3636

3737
- name: Setup NuGet.exe for use with actions
38-
uses: NuGet/setup-nuget@v1
38+
uses: NuGet/setup-nuget@v2
3939

4040
- name: Build MIDebugEngine
4141
run: |
@@ -44,7 +44,7 @@ jobs:
4444
Configuration: ${{ matrix.configuration }}
4545

4646
- name: Setup VSTest.console.exe
47-
uses: darenm/Setup-VSTest@v1.2
47+
uses: darenm/Setup-VSTest@v1.3
4848

4949
- name: Run VS Extension tests
5050
run: vstest.console.exe ${{ github.workspace }}\bin\${{ matrix.configuration }}\MICoreUnitTests.dll ${{ github.workspace }}\bin\${{ matrix.configuration }}\JDbgUnitTests.dll ${{ github.workspace }}\bin\${{ matrix.configuration }}\SSHDebugTests.dll ${{ github.workspace }}\bin\${{ matrix.configuration }}\MIDebugEngineUnitTests.dll
@@ -54,20 +54,20 @@ jobs:
5454

5555
steps:
5656
- name: Checkout
57-
uses: actions/checkout@v3
57+
uses: actions/checkout@v4
5858
with:
5959
fetch-depth: 0
6060

6161
- name: Install .NET Core
62-
uses: actions/setup-dotnet@v3
62+
uses: actions/setup-dotnet@v4
6363
with:
64-
dotnet-version: 6.0.x
64+
dotnet-version: 8.0.x
6565

6666
- name: Setup MSBuild.exe
67-
uses: microsoft/setup-msbuild@v1.1
67+
uses: microsoft/setup-msbuild@v2
6868

6969
- name: Setup NuGet.exe for use with actions
70-
uses: NuGet/setup-nuget@v1
70+
uses: NuGet/setup-nuget@v2
7171

7272
- name: Build MIDebugEngine
7373
run: |
@@ -102,7 +102,7 @@ jobs:
102102
dotnet test $CppTestsPath --logger "trx;LogFileName=$ResultsPath"
103103
104104
- name: 'Upload Test Results'
105-
uses: actions/upload-artifact@v3
105+
uses: actions/upload-artifact@v4
106106
if: ${{ always() }}
107107
with:
108108
name: win_msys2_x64_results
@@ -112,14 +112,14 @@ jobs:
112112
runs-on: ubuntu-latest
113113
steps:
114114
- name: Checkout
115-
uses: actions/checkout@v3
115+
uses: actions/checkout@v4
116116
with:
117117
fetch-depth: 0
118118

119119
- name: Install .NET Core
120-
uses: actions/setup-dotnet@v3
120+
uses: actions/setup-dotnet@v4
121121
with:
122-
dotnet-version: 6.0.x
122+
dotnet-version: 8.0.x
123123

124124
- name: Build
125125
run: dotnet build ${{ github.workspace }}/src/MIDebugEngine-Unix.sln
@@ -143,24 +143,24 @@ jobs:
143143
${{ github.workspace }}/eng/Scripts/CI-Test.sh
144144
145145
- name: 'Upload Test Results'
146-
uses: actions/upload-artifact@v3
146+
uses: actions/upload-artifact@v4
147147
if: ${{ always() }}
148148
with:
149149
name: linux_x64_results
150150
path: ${{ github.workspace }}/bin/DebugAdapterProtocolTests/Debug/CppTests/results.trx
151151

152152
osx_build:
153-
runs-on: macos-latest
153+
runs-on: macos-12
154154
steps:
155155
- name: Checkout
156-
uses: actions/checkout@v3
156+
uses: actions/checkout@v4
157157
with:
158158
fetch-depth: 0
159159

160160
- name: Install .NET Core
161-
uses: actions/setup-dotnet@v3
161+
uses: actions/setup-dotnet@v4
162162
with:
163-
dotnet-version: 6.0.x
163+
dotnet-version: 8.0.x
164164

165165
- name: Build
166166
run: dotnet build ${{ github.workspace }}/src/MIDebugEngine-Unix.sln
@@ -172,8 +172,8 @@ jobs:
172172
${{ github.workspace }}/eng/Scripts/CI-Test.sh
173173
174174
- name: 'Upload Test Results'
175-
uses: actions/upload-artifact@v3
175+
uses: actions/upload-artifact@v4
176176
if: ${{ always() }}
177177
with:
178178
name: osx_x64_results
179-
path: ${{ github.workspace }}/bin/DebugAdapterProtocolTests/Debug/CppTests/results.trx
179+
path: ${{ github.workspace }}/bin/DebugAdapterProtocolTests/Debug/CppTests/results.trx

MIEngine.UnixPortSupplier.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<tags></tags>
1313
</metadata>
1414
<files>
15-
<file src="drop\Release\ReferenceAssemblies\Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.xml" target="ref\dotnet" />
16-
<file src="drop\Release\ReferenceAssemblies\Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.dll" target="ref\dotnet" />
15+
<file src="Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.xml" target="ref\dotnet" />
16+
<file src="Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.dll" target="ref\dotnet" />
1717
</files>
1818
</package>

MIEngine.mdd.nuspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
<tags></tags>
1313
</metadata>
1414
<files>
15-
<file src="drop\Release\ReferenceAssemblies\*.xml" target="ref\dotnet" exclude="drop\Release\ReferenceAssemblies\Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.xml" />
16-
<file src="drop\Release\ReferenceAssemblies\Microsoft.DebugEngineHost.dll" target="ref\dotnet" />
17-
<file src="drop\Release\Microsoft.MICore.dll" target="ref\dotnet" />
18-
<file src="drop\Release\*" target="Release" exclude="drop\Release\Install.cmd;drop\Release\ReferenceAssemblies" />
19-
<file src="drop\Release\loc\**\*" target="Release\loc" />
15+
<file src="ReferenceAssemblies\*.xml" target="ref\dotnet" exclude="ReferenceAssemblies\Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.xml" />
16+
<file src="ReferenceAssemblies\Microsoft.DebugEngineHost.dll" target="ref\dotnet" />
17+
<file src="Microsoft.MICore.dll" target="ref\dotnet" />
18+
<file src="*" target="Release" exclude="Install.cmd;drop\Release\ReferenceAssemblies" />
19+
<file src="loc\**\*" target="Release\loc" />
2020
</files>
2121
</package>

build/package_versions.settings.targets

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<PropertyGroup>
33
<Microsoft_VisualStudio_Debugger_Interop_Portable_Version>1.0.1</Microsoft_VisualStudio_Debugger_Interop_Portable_Version>
4-
<Microsoft_VisualStudio_Interop_Version>17.8.37221</Microsoft_VisualStudio_Interop_Version>
4+
<Microsoft_VisualStudio_Interop_Version>17.11.40262</Microsoft_VisualStudio_Interop_Version>
55
<Newtonsoft_Json_Version>13.0.3</Newtonsoft_Json_Version>
66
<Microsoft_VisualStudio_Shared_VSCodeDebugProtocol_Version>17.2.60629.1</Microsoft_VisualStudio_Shared_VSCodeDebugProtocol_Version>
77

@@ -25,15 +25,19 @@
2525
<Microsoft_VisualStudio_Debugger_Interop_15_0_Version>17.5.33428.366</Microsoft_VisualStudio_Debugger_Interop_15_0_Version>
2626
<Microsoft_VisualStudio_Debugger_Interop_16_0_Version>17.5.33428.366</Microsoft_VisualStudio_Debugger_Interop_16_0_Version>
2727
<Microsoft_VisualStudio_Debugger_InteropA_Version>17.5.33428.366</Microsoft_VisualStudio_Debugger_InteropA_Version>
28-
<Microsoft_VisualStudio_Shell_15_0_Version>17.8.37221</Microsoft_VisualStudio_Shell_15_0_Version>
29-
<Microsoft_VisualStudio_Shell_Framework_Version>17.8.37221</Microsoft_VisualStudio_Shell_Framework_Version>
30-
<Microsoft_VisualStudio_Threading_Version>17.8.14</Microsoft_VisualStudio_Threading_Version>
31-
<Microsoft_VisualStudio_Utilities_Version>17.8.37221</Microsoft_VisualStudio_Utilities_Version>
28+
<Microsoft_VisualStudio_Shell_15_0_Version>17.11.40262</Microsoft_VisualStudio_Shell_15_0_Version>
29+
<Microsoft_VisualStudio_Shell_Framework_Version>17.11.40262</Microsoft_VisualStudio_Shell_Framework_Version>
30+
<Microsoft_VisualStudio_Threading_Version>17.11.20</Microsoft_VisualStudio_Threading_Version>
31+
<Microsoft_VisualStudio_Utilities_Version>17.11.40262</Microsoft_VisualStudio_Utilities_Version>
3232
<Microsoft_VisualStudio_Shell_Interop_15_0_DesignTime_Version>15.0.26932</Microsoft_VisualStudio_Shell_Interop_15_0_DesignTime_Version>
3333
<Microsoft_VisualStudio_Workspace_Version>15.0.392</Microsoft_VisualStudio_Workspace_Version>
3434
<Microsoft_VisualStudio_Workspace_VSIntegration_Version>15.0.392</Microsoft_VisualStudio_Workspace_VSIntegration_Version>
35-
<Microsoft_VisualStudio_TextManager_Interop_Version>17.8.37221</Microsoft_VisualStudio_TextManager_Interop_Version>
35+
<Microsoft_VisualStudio_TextManager_Interop_Version>17.11.40262</Microsoft_VisualStudio_TextManager_Interop_Version>
3636
<Microsoft_VSSDK_BuildTools_Version>17.3.2093</Microsoft_VSSDK_BuildTools_Version>
3737
<System_Runtime_Loader_Version>4.3.0</System_Runtime_Loader_Version>
38+
39+
<!-- For Component Governance -->
40+
<Microsoft_IO_Redist_Version>6.0.1</Microsoft_IO_Redist_Version>
41+
<System_Text_Json_Version>8.0.4</System_Text_Json_Version>
3842
</PropertyGroup>
3943
</Project>

build/version.settings.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!--SxS: These three properties should be changed at the start of a new version, VersionZeroYear should be the year
44
before the start of the project.-->
55
<MajorVersion>17</MajorVersion>
6-
<MinorVersion>8</MinorVersion>
6+
<MinorVersion>12</MinorVersion>
77
<VersionZeroYear>2022</VersionZeroYear>
88
<!-- Note: for compatibility, we leave the default assembly version of the repo at 14.0.
99
If we ever decide to change this, make sure that you notify partner teams such as C++ IOT -->

eng/pipelines/MIDebugEngine-CI.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ stages:
3939

4040
- stage: CodeAnalysis
4141
dependsOn: [CI]
42+
variables:
43+
- group: VSEng sponsored APIScan
4244
jobs:
43-
- template: ./jobs/MSHosted-Windows.job.yml
45+
- template: ./jobs/VSEngSS-MicroBuild2022-1ES.job.yml
4446
parameters:
4547
DisplayName: 'CodeAnalysis'
4648
JobTemplate:

eng/pipelines/VS-release.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
name: $(Date:yyyMMdd).$(Rev:r)
3+
34
variables:
4-
- group: TSDTUSR
5+
- name: TeamName
6+
value: MDDDebugger
57

68
resources:
79
repositories:
@@ -21,7 +23,7 @@ extends:
2123
name: VSEngSS-MicroBuild2022-1ES
2224
os: windows
2325
stages:
24-
- stage: stage
26+
- stage: BuildVSReleasePackage
2527
displayName: VS_Release
2628
jobs:
2729
- job: Phase_1
@@ -38,4 +40,34 @@ extends:
3840
enabled: true
3941
steps:
4042
- template: /eng/pipelines/templates/VS-release.template.yml@self
43+
44+
- stage: VS_Insertion
45+
dependsOn: [BuildVSReleasePackage]
46+
jobs:
47+
- job:
48+
displayName: Insert package into VS
49+
templateContext:
50+
inputs:
51+
- input: pipelineArtifact
52+
artifactName: PackageVersion
53+
targetPath: $(Build.ArtifactStagingDirectory)\PackageVersion
54+
steps:
55+
- checkout: none
56+
57+
- powershell: |
58+
$version= [IO.File]::ReadAllText("$(Build.ArtifactStagingDirectory)\PackageVersion\NugetPackageVersion.txt")
59+
Write-Host "##vso[task.setvariable variable=MDDPackageVersion;]$version"
60+
displayName: 'Set MDDPackage Version'
61+
62+
- task: ms-vseng.MicroBuildShipTasks.55100717-a81d-45ea-a363-b8fe3ec375ad.MicroBuildInsertVsPayload@4
63+
displayName: 'Insert VS Payload'
64+
inputs:
65+
TargetBranch: $(TargetBranch)
66+
TeamName: 'VS Debugger Platform'
67+
TeamEmail: $(TEAMEMAIL)
68+
DefaultConfigValues: 'VS.Redist.Debugger.MDD.MIEngine=$(MDDPackageVersion)'
69+
RevisionTextFiles: 'src/SetupPackages/VC/IDE/MDD/core/revision.txt,src/SetupPackages/VC/IDE/MDD/res/revision.txt'
70+
InsertionPayloadName: 'MIEngine $(MDDPackageVersion)'
71+
InsertionDescription: 'Updating MIEngine to $(MDDPackageVersion). See $(Release.Artifacts.MIEngine_MDD.BuildURI)'
72+
InsertionReviewers: $(InsertionReviewers)
4173
...

eng/pipelines/VSCode-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22
name: $(Date:yyyMMdd).$(Rev:r)
3+
34
variables:
4-
- group: TSDTUSR
5+
- name: TeamName
6+
value: MDDDebugger
57

68
resources:
79
repositories:

eng/pipelines/steps/APIScan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ steps:
3838
isLargeApp: false
3939
continueOnError: true
4040
env:
41-
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(MIEngineApiScan)
41+
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId)

eng/pipelines/steps/CopyAndPublishSymbols.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,21 @@ steps:
77
- template: ../tasks/CopyFiles.yml
88
parameters:
99
displayName: 'Collect build symbols'
10-
SourceFolder: '$(Build.SourcesDirectory)'
11-
Contents: '$(Build.SourcesDirectory)\bin\**\*.+(pdb|exe|dll)'
10+
SourceFolder: '$(Build.StagingDirectory)\drop'
11+
Contents: '$(Build.StagingDirectory)\drop\**\*.+(pdb|exe|dll)'
1212
TargetFolder: '$(Build.ArtifactStagingDirectory)/symbols'
1313
CleanTargetFolder: true
1414

15-
- task: PowerShell@2
16-
displayName: 'Set Variables for PublishSymbols'
15+
16+
- task: ms-vseng.MicroBuildShipTasks.0ffdda1d-8c7b-40da-b8b1-061660eaeea3.MicroBuildArchiveSymbols@5
17+
displayName: 'Archive MIEngine_MDD on Symweb'
1718
inputs:
18-
targetType: 'inline'
19-
script: |
20-
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.AccountName]microsoft"
21-
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.PAT;issecret=true;]${env:ARTIFACTSERVICES_SYMBOL_PAT}"
22-
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.UseAAD]false"
23-
env:
24-
ARTIFACTSERVICES_SYMBOL_PAT: $(all-org-SymbolsReadWrite)
25-
26-
- template: ../tasks/PublishSymbols.yml
27-
parameters:
28-
IndexSources: false
29-
SymbolsFolder: '$(Build.ArtifactStagingDirectory)/symbols'
30-
SearchPattern: '**\*.pdb'
31-
SymbolServerType: TeamServices
32-
33-
- template: ../tasks/1ES/PublishPipelineArtifact.yml
34-
parameters:
35-
displayName: 'Publish Symbols'
36-
targetPath: '$(Build.ArtifactStagingDirectory)/symbols'
37-
artifactName: 'Symbols'
38-
OneESPT: ${{ parameters.OneESPT }}
19+
SymbolsFeatureName: MIEngine
20+
SymbolsProject: VS
21+
SymbolsAgentPath: '$(Build.ArtifactStagingDirectory)\Symbols\'
22+
ExcludeAgentFolders: '$(Build.ArtifactStagingDirectory)\Symbols\Debug;$(Build.ArtifactStagingDirectory)\Symbols\Lab.Debug'
23+
${{ if parameters.OneESPT }}:
24+
ExpirationInDays: 3650 # Expire in 10 years for release builds
25+
${{ else }}:
26+
ExpirationInDays: 1 # Expire in 1 day if used for testing
3927
...

0 commit comments

Comments
 (0)