Skip to content
3 changes: 3 additions & 0 deletions .config/tsaoptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"projectName": "os"
}
58 changes: 16 additions & 42 deletions build/AzurePipelineTemplates/CsWinRT-Benchmarks-Steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,52 +10,35 @@ steps:
script: get_testwinrt.cmd
workingDirectory: $(Build.SourcesDirectory)\src

# Use .NET Core SDK 3.1
# Use .NET Core runtme 3.1
Copy link

Copilot AI Apr 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: 'runtme' should be corrected to 'runtime'.

Suggested change
# Use .NET Core runtme 3.1
# Use .NET Core runtime 3.1
Copilot uses AI. Check for mistakes.
- task: UseDotNet@2
displayName: Use .NET Core SDK 3.1
displayName: Use .NET Core runtime 3.1
inputs:
packageType: runtime
version: 3.1.x
installationPath: $(LocalAppData)\Microsoft\dotnet\
performMultiLevelLookup: true

# Use .NET Core runtime 6.0
- task: UseDotNet@2
displayName: Use .NET Core SDK 3.1
displayName: Use .NET Core runtime 6.0
inputs:
packageType: runtime
version: 3.1.x
installationPath: $(LocalAppData)\Microsoft\dotnet\x86\
performMultiLevelLookup: true
env:
PROCESSOR_ARCHITECTURE: x86
version: 6.x
installationPath: $(LocalAppData)\Microsoft\dotnet\

# Install .NET 8 SDK
- task: PowerShell@2
displayName: Install .NET 8 SDK
- task: UseDotNet@2
displayName: Use .NET Core SDK 8.0
inputs:
targetType: inline
failOnStderr: true
script: |
Write-Host ##vso[task.setvariable variable=PATH;]${env:LocalAppData}\Microsoft\dotnet;${env:PATH};

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;

&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Version "$($env:NET8_SDK_VERSION)" -Architecture "x64" -AzureFeed "$($env:NET5_SDK_FEED)"
packageType: sdk
version: 8.x
installationPath: $(LocalAppData)\Microsoft\dotnet\

# Install .NET 9 SDK
- task: PowerShell@2
displayName: Install .NET 9 SDK
- task: UseDotNet@2
displayName: Use .NET Core SDK 9.0
inputs:
targetType: inline
failOnStderr: true
script: |
Write-Host ##vso[task.setvariable variable=PATH;]${env:LocalAppData}\Microsoft\dotnet;${env:PATH};

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;

dotnet new globaljson --sdk-version "$($env:NET9_SDK_VERSION)"

&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Version "$($env:NET9_SDK_VERSION)" -Architecture "x64" -AzureFeed "$($env:NET5_SDK_FEED)"
packageType: sdk
version: 9.x
installationPath: $(LocalAppData)\Microsoft\dotnet\

# Verify .NET SDK
- task: CmdLine@2
Expand Down Expand Up @@ -83,12 +66,3 @@ steps:
# Component Detection
- task: ComponentGovernanceComponentDetection@0
displayName: Component Detection

# Stage Benchmark Results
- task: CopyFiles@2
displayName: Stage Benchmark Results
condition: always()
inputs:
SourceFolder: $(Build.SourcesDirectory)\src\BenchmarkDotNet.Artifacts\results\
Contents: '*'
TargetFolder: $(Build.ArtifactStagingDirectory)\benchmarks
Loading
Loading