Add .net6
This commit is contained in:
Родитель
181c6c4027
Коммит
8757eeb9bd
|
@ -13,7 +13,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.0-2.final" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.0.1" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="SetBuildVer" AfterTargets="GetBuildVersion" BeforeTargets="SetCloudBuildVersionVars;SetCloudBuildNumberWithVersion">
|
||||
|
|
|
@ -3,13 +3,17 @@
|
|||
<PropertyGroup>
|
||||
<Product>Refit HTTP Client Factory Extensions</Product>
|
||||
<Description>Refit HTTP Client Factory Extensions</Description>
|
||||
<TargetFrameworks>net5.0;netcoreapp3.1;netstandard2.0</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1;netstandard2.0</TargetFrameworks>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Refit\Refit.csproj" PrivateAssets="Analyzers" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
|
||||
<PackageReference Update="Microsoft.Extensions.Http" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Product>Refit Serializer for Newtonsoft.Json ($(TargetFramework))</Product>
|
||||
<Description>Refit Serializers for Newtonsoft.Json</Description>
|
||||
<TargetFrameworks>net5.0;netstandard2.0;netstandard2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net5.0;netstandard2.0;net461</TargetFrameworks>
|
||||
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
|
||||
<RootNamespace>Refit</RootNamespace>
|
||||
<Nullable>enable</Nullable>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<Import Project="..\Refit\targets\refit.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net6.0;netcoreapp3.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net5.0;netcoreapp3.1;net461</TargetFrameworks>
|
||||
<Deterministic>false</Deterministic> <!-- Some tests rely on CallerFilePath -->
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<Product>Refit ($(TargetFramework))</Product>
|
||||
<TargetFrameworks>net5.0;netstandard2.0;netstandard2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;net5.0;netstandard2.0;netstandard2.1;net461</TargetFrameworks>
|
||||
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
|
||||
|
||||
<Nullable>enable</Nullable>
|
||||
|
|
|
@ -31,11 +31,10 @@ stages:
|
|||
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
displayName: Use .NET Core 5.x SDK
|
||||
displayName: Use .NET 6.x SDK
|
||||
inputs:
|
||||
version: 6.x
|
||||
performMultiLevelLookup: true
|
||||
includePreviewVersions: true
|
||||
|
||||
- task: UseDotNet@2
|
||||
displayName: Use .NET Core 5.x Runtime
|
||||
|
|
Загрузка…
Ссылка в новой задаче