Skip to content

Commit

Permalink
Upgrade to .NET 5
Browse files Browse the repository at this point in the history
Upgrade to .NET 5 & update packages to latest
  • Loading branch information
b1thunt3r committed Nov 25, 2020
1 parent 30d7f56 commit 5676263
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
id: setup
run: |
version=$(grep -oPm1 "(?<=<Version>)[^<]+" Solution.props).$GITHUB_RUN_NUMBER
echo "::set-env name=PACKAGE_VERSION::$version"
echo "PACKAGE_VERSION=$version" >> $GITHUB_ENV
echo "::set-output name=PACKAGE_VERSION::$version"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.401
dotnet-version: 5.0.100

- name: Install dependencies
run: dotnet restore
Expand All @@ -47,7 +47,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 +69,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.401
dotnet-version: 5.0.100

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

<Authors>b1thunt3r</Authors>
Expand Down
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>2.0</Version>
<Version>3.0</Version>
<PackageProjectUrl Condition="'$(PackageProjectUrl)'==''">https://github.com/0b00/Bit0.PipeLines</PackageProjectUrl>
<RepositoryUrl>https://github.com/0b00/Bit0.PipeLines</RepositoryUrl>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions tests/PipeLineTests/PipeLineTests.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

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

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<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 5676263

Please sign in to comment.