meta: Fix CI/CD (#1583)
* Update build.yml * Update azure-pipelines.yml * Update examples to NC3.1
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user