Skip to content

Commit

Permalink
add target framework
Browse files Browse the repository at this point in the history
  • Loading branch information
IOL0ol1 committed Jan 22, 2022
1 parent 3f22312 commit d3adbc3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$(SolutionDir)/OpenSlideSharp.Common.props" />

<PropertyGroup>
<TargetFrameworks>net35;netstandard2.0;net5.0</TargetFrameworks>
<TargetFrameworks>net35;netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand All @@ -22,6 +22,12 @@
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="System.Drawing.Common">
<Version>5.0.2</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
<PackageReference Include="System.Drawing.Common">
<Version>5.0.2</Version>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSlideSharp.BruTile/OpenSlideSharp.BruTile.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$(SolutionDir)/OpenSlideSharp.Common.props" />

<PropertyGroup>
<TargetFrameworks>net461;netstandard2.0;net5.0</TargetFrameworks>
<TargetFrameworks>net461;netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>1701;1702;1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSlideSharp.Windows/OpenSlideSharp.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$(SolutionDir)/OpenSlideSharp.Common.props" />

<PropertyGroup>
<TargetFrameworks>net35;netstandard2.0;net5.0</TargetFrameworks>
<TargetFrameworks>net35;netstandard2.0;netstandard2.1;net5.0-windows</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<PackageId>OpenSlideSharp.Windows</PackageId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$(SolutionDir)/OpenSlideSharp.Common.props" />

<PropertyGroup>
<TargetFrameworks>net35;netstandard2.0;net5.0</TargetFrameworks>
<TargetFrameworks>net35;netstandard2.0;netstandard2.1;net5.0-windows</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeBuildOutput>false</IncludeBuildOutput>
<PackageId>OpenSlideSharp.runtime.win</PackageId>
Expand Down
2 changes: 1 addition & 1 deletion src/OpenSlideSharp/OpenSlideSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="$(SolutionDir)/OpenSlideSharp.Common.props" />

<PropertyGroup>
<TargetFrameworks>net35;netstandard2.0;net5.0</TargetFrameworks>
<TargetFrameworks>net35;netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down

0 comments on commit d3adbc3

Please sign in to comment.