Skip to content

Commit

Permalink
Add a .NET 6.0 target to OpenMcdf.Extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Numpsy committed Aug 17, 2024
1 parent 1eb2a93 commit 37800fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal abstract class PropertyFactory
{
static PropertyFactory()
{
#if NETSTANDARD2_0_OR_GREATER
#if NETSTANDARD2_0_OR_GREATER || NET6_0_OR_GREATER
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
#endif
}
Expand Down
4 changes: 3 additions & 1 deletion sources/OpenMcdf.Extensions/OpenMcdf.Extensions.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net40</TargetFrameworks>
<TargetFrameworks>net6.0;netstandard2.0;net40</TargetFrameworks>
<Configurations>Debug;Release</Configurations>
<SignAssembly>true</SignAssembly>
<!-- Mark as trimmable and enable trimming analysis in .NET 6.0+ builds -->
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
Expand Down

0 comments on commit 37800fb

Please sign in to comment.