meta: Fix CI/CD (#1583)

* Update build.yml

* Update azure-pipelines.yml

* Update examples to NC3.1
This commit is contained in:
JT
2020-06-28 03:20:30 +08:00
committed by GitHub
parent c42bfa6f4f
commit 4fa6393329
5 changed files with 14 additions and 14 deletions

View File

@@ -14,25 +14,20 @@ trigger:
jobs: jobs:
- job: Linux - job: Linux
pool: pool:
vmImage: 'ubuntu-16.04' vmImage: 'ubuntu-latest'
steps: steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: 'sdk'
version: '3.x'
- template: azure/build.yml - template: azure/build.yml
- job: Windows_build - job: Windows_build
pool: pool:
vmImage: 'windows-2019' vmImage: 'windows-latest'
condition: ne(variables['Build.SourceBranch'], 'refs/heads/dev') condition: ne(variables['Build.SourceBranch'], 'refs/heads/dev')
steps: steps:
- template: azure/build.yml - template: azure/build.yml
- job: Windows_deploy - job: Windows_deploy
pool: pool:
vmImage: 'windows-2019' vmImage: 'windows-latest'
condition: | condition: |
and ( and (
succeeded(), succeeded(),

View File

@@ -1,5 +1,10 @@
steps: steps:
- script: dotnet restore --no-cache Discord.Net.sln - task: DotNetCoreCLI@2
inputs:
command: 'restore'
projects: 'Discord.Net.sln'
feedsToUse: 'select'
verbosityRestore: 'Minimal'
displayName: Restore packages displayName: Restore packages
- script: dotnet build "Discord.Net.sln" --no-restore -v minimal -c $(buildConfiguration) /p:BuildNumber=$(buildNumber) /p:IsTagBuild=$(buildTag) - script: dotnet build "Discord.Net.sln" --no-restore -v minimal -c $(buildConfiguration) /p:BuildNumber=$(buildNumber) /p:IsTagBuild=$(buildTag)

View File

@@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -2,11 +2,11 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.0.0" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -2,12 +2,12 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>_03_sharded_client</RootNamespace> <RootNamespace>_03_sharded_client</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.0.0" /> <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>