mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-20 06:30:57 +01:00
Fix builds for dotnet6 (#6595)
* Target net6.0 * Use new Enum.TryParse(ReadOnlySpan<char>) overload * Replace RNGCryptoServiceProvider with RandomNumberGenerator * ci - target net6.0 (#6594) * Update deployment for dotnet6 * Use generic 6.0.x preview for CI * Update direct dotnet download links Co-authored-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
@@ -7,7 +7,7 @@ parameters:
|
||||
default: "ubuntu-latest"
|
||||
- name: DotNetSdkVersion
|
||||
type: string
|
||||
default: 6.0.100-rc.1.21458.32
|
||||
default: 6.0.x
|
||||
|
||||
jobs:
|
||||
- job: CompatibilityCheck
|
||||
@@ -34,6 +34,7 @@ jobs:
|
||||
inputs:
|
||||
packageType: sdk
|
||||
version: ${{ parameters.DotNetSdkVersion }}
|
||||
includePreviewVersions: true
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'Install ABI CompatibilityChecker Tool'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
parameters:
|
||||
LinuxImage: 'ubuntu-latest'
|
||||
RestoreBuildProjects: 'Jellyfin.Server/Jellyfin.Server.csproj'
|
||||
DotNetSdkVersion: 6.0.100-rc.1.21458.32
|
||||
DotNetSdkVersion: 6.0.x
|
||||
|
||||
jobs:
|
||||
- job: Build
|
||||
@@ -54,6 +54,7 @@ jobs:
|
||||
inputs:
|
||||
packageType: sdk
|
||||
version: ${{ parameters.DotNetSdkVersion }}
|
||||
includePreviewVersions: true
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'Publish Server'
|
||||
|
||||
@@ -198,7 +198,8 @@ jobs:
|
||||
displayName: 'Use .NET 6.0 sdk'
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '6.0.100-rc.1.21458.32'
|
||||
version: '6.0.x'
|
||||
includePreviewVersions: true
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'Build Stable Nuget packages'
|
||||
|
||||
@@ -10,7 +10,7 @@ parameters:
|
||||
default: "tests/**/*Tests.csproj"
|
||||
- name: DotNetSdkVersion
|
||||
type: string
|
||||
default: 6.0.100-rc.1.21458.32
|
||||
default: 6.0.x
|
||||
|
||||
jobs:
|
||||
- job: Test
|
||||
@@ -41,6 +41,7 @@ jobs:
|
||||
inputs:
|
||||
packageType: sdk
|
||||
version: ${{ parameters.DotNetSdkVersion }}
|
||||
includePreviewVersions: true
|
||||
|
||||
- task: SonarCloudPrepare@1
|
||||
displayName: 'Prepare analysis on SonarCloud'
|
||||
|
||||
Reference in New Issue
Block a user