Skip to content

Commit

Permalink
Upgrade to .NET 5
Browse files Browse the repository at this point in the history
  • Loading branch information
b1thunt3r committed Nov 26, 2020
1 parent 86709c9 commit b804b42
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
PACKAGE_VERSION: ${{ steps.setup.outputs.PACKAGE_VERSION }}
DOTNET_VERSION: ${{ steps.setup.outputs.DOTNET_VERSION }}

steps:
- name: Checkout code
Expand All @@ -29,13 +30,14 @@ jobs:
id: setup
run: |
version=$(grep -oPm1 "(?<=<Version>)[^<]+" Solution.props).$GITHUB_RUN_NUMBER
echo "::set-env name=PACKAGE_VERSION::$version"
dotnet_version=$(grep -oPm1 "(?<=<DotNetVersion>)[^<]+" Common.props)
echo "::set-output name=PACKAGE_VERSION::$version"
echo "::set-output name=DOTNET_VERSION::$dotnet_version"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.401
dotnet-version: ${{ steps.setup.outputs.DOTNET_VERSION }}

- name: Install dependencies
run: dotnet restore
Expand All @@ -47,7 +49,7 @@ jobs:
run: dotnet test --no-restore --verbosity normal

- name: Package
run: dotnet pack --no-restore -c Release -p:Version=$PACKAGE_VERSION
run: dotnet pack --no-restore -c Release -p:Version=${{ steps.setup.outputs.PACKAGE_VERSION }}

- name: Collect Packages
run: |
Expand All @@ -69,7 +71,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.401
dotnet-version: ${{ needs.build.outputs.DOTNET_VERSION }}

- name: Download Artifact
uses: actions/download-artifact@v1
Expand Down
8 changes: 6 additions & 2 deletions Common.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<Project>
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<AnalysisLevel>5</AnalysisLevel>

<Authors>b1thunt3r</Authors>
Expand All @@ -27,4 +27,8 @@
<NoWarn>1701;1702;IDE0002;IDE0022;CC0057;IDE0063;IDE0046;IDE0066</NoWarn>
</PropertyGroup>

<ProjectExtensions>
<DotNetVersion>5.0.100</DotNetVersion>
</ProjectExtensions>

</Project>
2 changes: 1 addition & 1 deletion Solution.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>5.2</Version>
<Version>6.0</Version>
<PackageProjectUrl Condition="'$(PackageProjectUrl)'==''">Update project meta info</PackageProjectUrl>
<RepositoryUrl>https://github.com/0b00/Bit0.Registry</RepositoryUrl>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Bit0.Registry.Core/Bit0.Registry.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.8" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="SemanticVersioning" Version="1.2.2" />
<PackageReference Include="SemanticVersioning" Version="1.3.0" />
</ItemGroup>

<Import Project="..\..\Solution.props" />
Expand Down
6 changes: 3 additions & 3 deletions tests/RegistryTests/RegistryTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand All @@ -14,9 +14,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Divergic.Logging.Xunit" Version="3.5.0" />
<PackageReference Include="Divergic.Logging.Xunit" Version="3.6.0" />
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit b804b42

Please sign in to comment.