Skip to content

Commit f565ed8

Browse files
authored
Use netstandard2.0 and net8.0 targets for VbaCompression library (#7)
2 parents 8a703d4 + 3e98f9e commit f565ed8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/Directory.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
<PropertyGroup>
44
<VersionPrefix>1.0.0</VersionPrefix>
5-
<TargetFrameworks>net462;net48;net6.0;net7.0;net8.0</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
6+
<LangVersion>12.0</LangVersion>
67
</PropertyGroup>
78

89
<PropertyGroup>

src/Kavod.Vba.Compression.Tests/Kavod.Vba.Compression.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<TargetFrameworks>net48;net8.0</TargetFrameworks>
45
<IsPackable>false</IsPackable>
56
</PropertyGroup>
67

src/Kavod.Vba.Compression/Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal static class Extensions
1010
[DebuggerStepThrough]
1111
internal static byte[] ToMcbsBytes(this string textToConvert, UInt16 codePage)
1212
{
13-
#if !NET48
13+
#if NET
1414
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
1515
#endif
1616
return Encoding.GetEncoding(codePage).GetBytes(textToConvert);

0 commit comments

Comments
 (0)