Skip to content

Commit

Permalink
chore: upgrade to net6.0 (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels authored Jan 7, 2022
1 parent f364a3a commit b0a2eb7
Show file tree
Hide file tree
Showing 15 changed files with 74 additions and 66 deletions.
15 changes: 15 additions & 0 deletions build/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ stages:
- template: 'nuget/determine-pr-version.yml@templates'
parameters:
manualTriggerVersion: ${{ parameters['Package.Version.ManualTrigger'] }}
- task: UseDotNet@2
displayName: 'Import .NET Core SDK ($(DotNet.Sdk.PreviousVersion))'
inputs:
packageType: 'sdk'
version: '$(DotNet.Sdk.PreviousVersion)'
- template: 'build/build-solution.yml@templates'
parameters:
dotnetSdkVersion: '$(DotNet.Sdk.Version)'
Expand Down Expand Up @@ -72,6 +77,11 @@ stages:
inputs:
artifact: 'Build'
path: '$(Build.SourcesDirectory)'
- task: UseDotNet@2
displayName: 'Import .NET Core SDK ($(DotNet.Sdk.PreviousVersion))'
inputs:
packageType: 'sdk'
version: '$(DotNet.Sdk.PreviousVersion)'
- template: test/run-unit-tests.yml@templates
parameters:
dotnetSdkVersion: '$(DotNet.Sdk.Version)'
Expand All @@ -92,6 +102,11 @@ stages:
inputs:
artifact: 'Build'
path: '$(Build.SourcesDirectory)'
- task: UseDotNet@2
displayName: 'Import .NET Core SDK ($(DotNet.Sdk.PreviousVersion))'
inputs:
packageType: 'sdk'
version: '$(DotNet.Sdk.PreviousVersion)'
- template: test/run-integration-tests.yml@templates
parameters:
dotnetSdkVersion: '$(DotNet.Sdk.Version)'
Expand Down
15 changes: 15 additions & 0 deletions build/nuget-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ stages:
parameters:
dotnetSdkVersion: '$(DotNet.Sdk.Version)'
version: $(Build.BuildNumber)
- task: UseDotNet@2
displayName: 'Import .NET Core SDK ($(DotNet.Sdk.PreviousVersion))'
inputs:
packageType: 'sdk'
version: '$(DotNet.Sdk.PreviousVersion)'
- task: CopyFiles@2
displayName: 'Copy build artifacts'
inputs:
Expand All @@ -60,6 +65,11 @@ stages:
inputs:
artifact: 'Build'
path: '$(Build.SourcesDirectory)'
- task: UseDotNet@2
displayName: 'Import .NET Core SDK ($(DotNet.Sdk.PreviousVersion))'
inputs:
packageType: 'sdk'
version: '$(DotNet.Sdk.PreviousVersion)'
- template: test/run-unit-tests.yml@templates
parameters:
dotnetSdkVersion: '$(DotNet.Sdk.Version)'
Expand All @@ -80,6 +90,11 @@ stages:
inputs:
artifact: 'Build'
path: '$(Build.SourcesDirectory)'
- task: UseDotNet@2
displayName: 'Import .NET Core SDK ($(DotNet.Sdk.PreviousVersion))'
inputs:
packageType: 'sdk'
version: '$(DotNet.Sdk.PreviousVersion)'
- template: test/run-integration-tests.yml@templates
parameters:
dotnetSdkVersion: '$(DotNet.Sdk.Version)'
Expand Down
3 changes: 2 additions & 1 deletion build/variables/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
variables:
DotNet.Sdk.Version: '3.1.201'
DotNet.Sdk.Version: '6.0.100'
DotNet.Sdk.PreviousVersion: '3.1.201'
Project: 'Arcus.Observability'
Vm.Image: 'ubuntu-latest'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net6.0;netcoreapp3.1</TargetFrameworks>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to use correlation in applications</Description>
Expand All @@ -17,18 +17,10 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.8" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="2.2.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Guard.Net" Version="1.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.8" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<PackageId>Arcus.Observability.Telemetry.AspNetCore</PackageId>
<TargetFrameworks>netstandard2.1;net6.0;netcoreapp3.1</TargetFrameworks>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to improve ASP.NET Core telemetry with Serilog in applications</Description>
Expand All @@ -13,26 +12,27 @@
<RepositoryUrl>https://github.com/arcus-azure/arcus.observability</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Azure;Observability;Telemetry;Serilog;ASP.NET;Core</PackageTags>
<PackageId>Arcus.Observability.Telemetry.AspNetCore</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Arcus.Observability.Telemetry.AspNetCore</AssemblyName>
<RootNamespace>Arcus.Observability.Telemetry.AspNetCore</RootNamespace>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'netstandard2.1'">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="../Arcus.Observability.Telemetry.Core/Arcus.Observability.Telemetry.Core.csproj" />
<PackageReference Include="Guard.Net" Version="1.2.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Guard.Net" Version="1.2.0" />
<ProjectReference Include="../Arcus.Observability.Telemetry.Core/Arcus.Observability.Telemetry.Core.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>netstandard2.1;net6.0;netcoreapp3.1</TargetFrameworks>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to improve telemetry with Serilog in Azure Functions applications</Description>
Expand All @@ -17,16 +17,9 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.8" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Guard.Net" Version="1.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.8" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<PackageId>Arcus.Observability.Telemetry.Core</PackageId>
<TargetFramework>netstandard2.1</TargetFramework>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to improve telemetry with Serilog in applications</Description>
Expand All @@ -13,23 +12,16 @@
<RepositoryUrl>https://github.com/arcus-azure/arcus.observability</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Azure;Observability;Telemetry;Serilog</PackageTags>
<PackageId>Arcus.Observability.Telemetry.Core</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Arcus.Observability.Telemetry.Core</AssemblyName>
<RootNamespace>Arcus.Observability.Telemetry.Core</RootNamespace>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.8" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.2.0" />
</ItemGroup>


<ItemGroup>
<PackageReference Include="Guard.Net" Version="1.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.8" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<PackageId>Arcus.Observability.Telemetry.IoT</PackageId>
<TargetFramework>netstandard2.1</TargetFramework>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to improve IoT telemetry with Serilog in applications</Description>
Expand All @@ -13,19 +12,20 @@
<RepositoryUrl>https://github.com/arcus-azure/arcus.observability</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Azure;Observability;Telemetry;Serilog;IoT</PackageTags>
<PackageId>Arcus.Observability.Telemetry.IoT</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Arcus.Observability.Telemetry.IoT</AssemblyName>
<RootNamespace>Arcus.Observability.Telemetry.IoT</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../Arcus.Observability.Telemetry.Core/Arcus.Observability.Telemetry.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Guard.Net" Version="1.2.0" />
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.26.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Guard.Net" Version="1.2.0" />
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.26.0" />
<ItemGroup>
<ProjectReference Include="../Arcus.Observability.Telemetry.Core/Arcus.Observability.Telemetry.Core.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<PackageId>Arcus.Observability.Telemetry.Serilog.Enrichers</PackageId>
<TargetFrameworks>netstandard2.1;net6.0;netcoreapp3.1</TargetFrameworks>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to improve telemetry with Serilog in applications</Description>
Expand All @@ -13,6 +12,7 @@
<RepositoryUrl>https://github.com/arcus-azure/arcus.observability</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Azure;Observability;Telemetry;Serilog</PackageTags>
<PackageId>Arcus.Observability.Telemetry.Serilog.Enrichers</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<PackageId>Arcus.Observability.Telemetry.Serilog.Filters</PackageId>
<TargetFrameworks>netstandard2.1;net6.0;netcoreapp3.1</TargetFrameworks>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to reduce telemetry with Serilog filters</Description>
Expand All @@ -13,6 +12,7 @@
<RepositoryUrl>https://github.com/arcus-azure/arcus.observability</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Azure;Observability;Telemetry;Serilog</PackageTags>
<PackageId>Arcus.Observability.Telemetry.Serilog.Filters</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<PackageId>Arcus.Observability.Telemetry.Serilog.Sinks.ApplicationInsights</PackageId>
<TargetFrameworks>netstandard2.1;net6.0;netcoreapp3.1</TargetFrameworks>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to improve telemetry with Serilog that is sent to Azure Application Insights</Description>
Expand All @@ -13,6 +12,7 @@
<RepositoryUrl>https://github.com/arcus-azure/arcus.observability</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Azure;Observability;Telemetry;Serilog</PackageTags>
<PackageId>Arcus.Observability.Telemetry.Serilog.Sinks.ApplicationInsights</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<PackageId>Arcus.Observability.Telemetry.Sql</PackageId>
<TargetFramework>netstandard2.1</TargetFramework>
<Authors>Arcus</Authors>
<Company>Arcus</Company>
<Description>Provides capability to improve SQL telemetry with Serilog in applications</Description>
Expand All @@ -13,18 +12,19 @@
<RepositoryUrl>https://github.com/arcus-azure/arcus.observability</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>Azure;Observability;Telemetry;Serilog;Sql</PackageTags>
<PackageId>Arcus.Observability.Telemetry.Sql</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Arcus.Observability.Telemetry.Sql</AssemblyName>
<RootNamespace>Arcus.Observability.Telemetry.Sql</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../Arcus.Observability.Telemetry.Core/Arcus.Observability.Telemetry.Core.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Data.SqlClient" Version="4.8.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Data.SqlClient" Version="4.8.1" />
<ItemGroup>
<ProjectReference Include="../Arcus.Observability.Telemetry.Core/Arcus.Observability.Telemetry.Core.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
<IsPackable>false</IsPackable>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<NoWarn>CS0618</NoWarn>
Expand Down

0 comments on commit b0a2eb7

Please sign in to comment.