File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 88 steps :
99 - name : Checkout!
1010 uses : actions/checkout@v1
11- - name : Setup .NET Environment.
11+ - name : Setup .NET Core 3.1
1212 uses : actions/setup-dotnet@v1
1313 with :
14- dotnet-version : ' 3.1.101'
14+ dotnet-version : ' 3.1'
15+ - name : Setup .NET 5
16+ uses : actions/setup-dotnet@v1
17+ with :
18+ dotnet-version : ' 5.0'
1519 - name : Build and run tests.
1620 run : dotnet test --collect:"XPlat Code Coverage"
1721 - name : Make artifacts directory.
Original file line number Diff line number Diff line change 1- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk.Web " >
22
33 <PropertyGroup >
44 <AssemblyName >AspNetCore.Proxy</AssemblyName >
55 <PackageId >AspNetCore.Proxy</PackageId >
66 <Version >4.1.0</Version >
77 <PackageProjectUrl >https://github.com/twitchax/aspnetcore.proxy</PackageProjectUrl >
88
9- <TargetFrameworks >netcoreapp3.1;netstandard2.0</TargetFrameworks >
9+ <TargetFrameworks >netcoreapp3.1;netstandard2.0;net5.0 </TargetFrameworks >
1010 <LangVersion >latest</LangVersion >
1111 <IsTestProject >false</IsTestProject >
1212 <GenerateDocumentationFile >true</GenerateDocumentationFile >
13+ <IsPackable >true</IsPackable >
14+ <OutputType >Library</OutputType >
1315 </PropertyGroup >
1416
15- <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp3.1'" >
16- <FrameworkReference Include =" Microsoft.AspNetCore.App" />
17- </ItemGroup >
1817
19- <ItemGroup Condition =" '$(TargetFramework)' != 'netcoreapp3.1 '" >
18+ <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0 '" >
2019 <PackageReference Include =" Microsoft.AspNetCore" Version =" 2.1.0" />
2120 <PackageReference Include =" Microsoft.AspNetCore.Mvc" Version =" 2.1.0" />
2221 <PackageReference Include =" Microsoft.Extensions.Http" Version =" 2.1.0" />
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.1</ TargetFramework >
4+ <TargetFrameworks >netcoreapp3.1;net5.0</ TargetFrameworks >
55 <IsPackable >false</IsPackable >
66 <LangVersion >latest</LangVersion >
77 </PropertyGroup >
You can’t perform that action at this time.
0 commit comments