Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create global.json #1317

Merged
merged 3 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pr:
- main
- rel/*

variables:
variables:
BuildConfiguration: Release
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

Expand All @@ -18,25 +18,29 @@ stages:
vmImage: windows-latest

steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK 8.x'
inputs:
version: 8.x

- task: UseDotNet@2
displayName: 'Use .NET Core SDK 6.x'
inputs:
version: 6.x
includePreviewVersions: true

- task: UseDotNet@2
displayName: 'Use .NET Core Runtime 5.x'
inputs:
version: 5.x
packageType: runtime
packageType: runtime

- task: UseDotNet@2
displayName: 'Use .NET Core Runtime 3.x'
inputs:
version: 3.x
packageType: runtime
packageType: runtime

- task: DotNetCoreCLI@2
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
Expand Down Expand Up @@ -72,7 +76,7 @@ stages:
-Properties "version=$($version.NuGetPackageVersion);RepositoryType=git;RepositoryCommit=$($version.GitCommitId);RepositoryUrl=https://github.com/Humanizr/Humanizer"
}
displayName: Create packages

- task: DotNetCoreCLI@2
inputs:
command: test
Expand Down Expand Up @@ -110,7 +114,7 @@ stages:
- deployment: CodeSign
displayName: Code Signing
pool:
vmImage: windows-latest
vmImage: windows-latest
environment: Code Sign
variables:
- group: SignClient Credentials
Expand All @@ -136,7 +140,7 @@ stages:
--description "Humanizer" `
--descriptionUrl "https://github.com/Humanizr/Humanizer"
displayName: Sign packages

- publish: $(Pipeline.Workspace)/BuildPackages
displayName: Publish Signed Packages
artifact: SignedPackages
7 changes: 7 additions & 0 deletions src/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "8.0.101",
"allowPrerelease": true,
"rollForward": "latestFeature"
}
}