Skip to content

Commit

Permalink
Explicitly target dotnet6 and use FrameworkReference in that case
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan321 authored and AndersAbel committed Sep 6, 2023
1 parent 3293061 commit 6181529
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net47;net461</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net47;net461;net6.0</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<PackageReleaseNotes>$releaseNotes$</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand All @@ -20,8 +20,11 @@
<Authors>Sustainsys</Authors>
</PropertyGroup>

<ItemGroup Condition="('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '6.0')))">
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup>
<ItemGroup Condition="!('$(TargetFrameworkIdentifier)' == '.NETCoreApp' And $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '6.0')))">
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.1.1" />
Expand Down

0 comments on commit 6181529

Please sign in to comment.