-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update .NET 10 SDK for install (#648)
- Loading branch information
1 parent
17c8e28
commit 7b1ac24
Showing
2 changed files
with
212 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,86 @@ | ||
resources: | ||
repositories: | ||
- repository: MicroBuildTemplate | ||
type: git | ||
name: 1ESPipelineTemplates/MicroBuildTemplate | ||
ref: refs/tags/release | ||
variables: | ||
LogDirectory: $(Build.ArtifactStagingDirectory)/logs | ||
ArtifactsDirectory: artifacts | ||
BuildConfiguration: 'Release' | ||
BuildPlatform: 'Any CPU' | ||
MSBuildArgs: '"/Property:Platform=$(BuildPlatform);Configuration=$(BuildConfiguration)" "/BinaryLogger:$(Build.SourcesDirectory)\$(ArtifactsDirectory)\msbuild.binlog"' | ||
SignType: 'Real' | ||
# Not using "--channel 10.0 --quality daily", see https://github.com/microsoft/slngen/issues/456 | ||
DotNet10InstallArgs: '-version 10.0.100-alpha.1.24571.14' | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- 'main' | ||
- 'refs/tags/*' | ||
paths: | ||
exclude: | ||
- '*.md' | ||
pr: none | ||
extends: | ||
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate | ||
parameters: | ||
sdl: | ||
sbom: | ||
enabled: false | ||
pool: | ||
name: VSEngSS-MicroBuild2022-1ES | ||
demands: | ||
- msbuild | ||
- visualstudio | ||
os: windows | ||
stages: | ||
- stage: '' | ||
displayName: 'Build' | ||
jobs: | ||
- job: Build | ||
displayName: 'Build' | ||
pool: | ||
name: 'VSEngSS-MicroBuild2022-1ES' | ||
templateContext: | ||
mb: | ||
signing: | ||
enabled: true | ||
signType: $(SignType) | ||
zipSources: false | ||
outputs: | ||
- output: pipelineArtifact | ||
displayName: 'Publish Artifacts' | ||
condition: always() | ||
targetPath: $(ArtifactsDirectory) | ||
artifactName: 'artifacts' | ||
steps: | ||
- script: 'echo ##vso[task.setvariable variable=SignType;]Real' | ||
displayName: 'Set SignType to Real for tagged commits' | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) | ||
- task: UseDotNet@2 | ||
displayName: 'Install .NET 8.x' | ||
inputs: | ||
version: '8.x' | ||
- task: UseDotNet@2 | ||
displayName: 'Install .NET 9.x' | ||
inputs: | ||
version: '9.x' | ||
- script: | | ||
powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) $(DotNet10InstallArgs) -InstallDir C:\ToolCache\dotnet" | ||
dotnet --info | ||
displayName: 'Install .NET 10.x' | ||
- task: VSBuild@1 | ||
displayName: 'Build Solution' | ||
inputs: | ||
solution: '**\*.sln' | ||
msbuildArgs: '$(MSBuildArgs)' | ||
- task: PublishSymbols@2 | ||
displayName: 'Publish Symbols' | ||
inputs: | ||
SearchPattern: '**/bin/**/*.pdb' | ||
IndexSources: false | ||
SymbolServerType: TeamServices | ||
resources: | ||
repositories: | ||
- repository: MicroBuildTemplate | ||
type: git | ||
name: 1ESPipelineTemplates/MicroBuildTemplate | ||
ref: refs/tags/release | ||
variables: | ||
LogDirectory: $(Build.ArtifactStagingDirectory)/logs | ||
ArtifactsDirectory: artifacts | ||
BuildConfiguration: 'Release' | ||
BuildPlatform: 'Any CPU' | ||
MSBuildArgs: '"/Property:Platform=$(BuildPlatform);Configuration=$(BuildConfiguration)" "/BinaryLogger:$(Build.SourcesDirectory)\$(ArtifactsDirectory)\msbuild.binlog"' | ||
SignType: 'Real' | ||
# Not using "--channel 10.0 --quality daily", see https://github.com/microsoft/slngen/issues/456 | ||
DotNet10InstallArgs: '-version 10.0.100-alpha.1.25074.9' | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- 'main' | ||
- 'refs/tags/*' | ||
paths: | ||
exclude: | ||
- '*.md' | ||
pr: none | ||
extends: | ||
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate | ||
parameters: | ||
sdl: | ||
sbom: | ||
enabled: false | ||
pool: | ||
name: VSEngSS-MicroBuild2022-1ES | ||
demands: | ||
- msbuild | ||
- visualstudio | ||
os: windows | ||
stages: | ||
- stage: '' | ||
displayName: 'Build' | ||
jobs: | ||
- job: Build | ||
displayName: 'Build' | ||
pool: | ||
name: 'VSEngSS-MicroBuild2022-1ES' | ||
templateContext: | ||
mb: | ||
signing: | ||
enabled: true | ||
signType: $(SignType) | ||
zipSources: false | ||
outputs: | ||
- output: pipelineArtifact | ||
displayName: 'Publish Artifacts' | ||
condition: always() | ||
targetPath: $(ArtifactsDirectory) | ||
artifactName: 'artifacts' | ||
steps: | ||
- script: 'echo ##vso[task.setvariable variable=SignType;]Real' | ||
displayName: 'Set SignType to Real for tagged commits' | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) | ||
- task: UseDotNet@2 | ||
displayName: 'Install .NET 8.x' | ||
inputs: | ||
version: '8.x' | ||
- task: UseDotNet@2 | ||
displayName: 'Install .NET 9.x' | ||
inputs: | ||
version: '9.x' | ||
- script: | | ||
powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) $(DotNet10InstallArgs) -InstallDir C:\ToolCache\dotnet" | ||
dotnet --info | ||
displayName: 'Install .NET 10.x' | ||
- task: VSBuild@1 | ||
displayName: 'Build Solution' | ||
inputs: | ||
solution: '**\*.sln' | ||
msbuildArgs: '$(MSBuildArgs)' | ||
- task: PublishSymbols@2 | ||
displayName: 'Publish Symbols' | ||
inputs: | ||
SearchPattern: '**/bin/**/*.pdb' | ||
IndexSources: false | ||
SymbolServerType: TeamServices |
Oops, something went wrong.