Skip to content

Commit

Permalink
1. No longer supports a .NET 6;
Browse files Browse the repository at this point in the history
2. Added support for .NET 8.
  • Loading branch information
Taritsyn committed Feb 9, 2025
1 parent 1e8e6ab commit 75d7dba
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
11 changes: 8 additions & 3 deletions src/AutoprefixerHost/AutoprefixerException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#if !NETSTANDARD1_3
using System.Runtime.Serialization;
#endif
#if !NETSTANDARD1_3 && !NET6_0
#if !NETSTANDARD1_3 && !NET8_0_OR_GREATER
using System.Security.Permissions;
#endif
using System.Text;
Expand Down Expand Up @@ -62,6 +62,9 @@ public AutoprefixerException(string message, Exception innerException)
/// </summary>
/// <param name="info">The object that holds the serialized data</param>
/// <param name="context">The contextual information about the source or destination</param>
#if NET8_0_OR_GREATER
[Obsolete(DiagnosticId = "SYSLIB0051")]
#endif
protected AutoprefixerException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Expand All @@ -79,8 +82,10 @@ protected AutoprefixerException(SerializationInfo info, StreamingContext context
/// </summary>
/// <param name="info">The <see cref="SerializationInfo"/> to populate with data</param>
/// <param name="context">The destination (see <see cref="StreamingContext"/>) for this serialization</param>
#if !NET6_0
#if !NET8_0_OR_GREATER
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
#else
[Obsolete(DiagnosticId = "SYSLIB0051")]
#endif
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
Expand All @@ -94,6 +99,7 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
}

#endregion
#endif

#region Object overrides

Expand Down Expand Up @@ -137,6 +143,5 @@ public override string ToString()
}

#endregion
#endif
}
}
7 changes: 4 additions & 3 deletions src/AutoprefixerHost/AutoprefixerHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Product>Autoprefixer Host for .NET</Product>
<VersionPrefix>3.0.36</VersionPrefix>
<TargetFrameworks>net40-client;net45;net461;netstandard1.3;netstandard2.0;net6.0</TargetFrameworks>
<TargetFrameworks>net40-client;net45;net461;netstandard1.3;netstandard2.0;net8.0</TargetFrameworks>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591;NETSDK1215;NU1605</NoWarn>
Expand All @@ -23,7 +23,8 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageTags>Autoprefixer;CSS</PackageTags>
<PackageReleaseNotes>Added support for the Autoprefixer version 10.4.20.0.</PackageReleaseNotes>
<PackageReleaseNotes>1. No longer supports a .NET 6;
2. Added support for .NET 8.</PackageReleaseNotes>
<NeutralLanguage>en-US</NeutralLanguage>
</PropertyGroup>

Expand All @@ -32,7 +33,7 @@
<Import Project="../../build/strong-name-signing.props" />
<Import Project="../../build/nuget-common.props" />

<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' Or '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net6.0' ">
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' Or '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net8.0' ">
<DefineConstants>$(DefineConstants);MODERN_JSON_CONVERTER</DefineConstants>
</PropertyGroup>

Expand Down
3 changes: 3 additions & 0 deletions src/AutoprefixerHost/AutoprefixerLoadException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public AutoprefixerLoadException(string message, Exception innerException)
/// </summary>
/// <param name="info">The object that holds the serialized data</param>
/// <param name="context">The contextual information about the source or destination</param>
#if NET8_0_OR_GREATER
[Obsolete(DiagnosticId = "SYSLIB0051")]
#endif
private AutoprefixerLoadException(SerializationInfo info, StreamingContext context)
: base(info, context)
{ }
Expand Down
9 changes: 7 additions & 2 deletions src/AutoprefixerHost/AutoprefixerProcessingException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#if !NETSTANDARD1_3
using System.Runtime.Serialization;
#endif
#if !NETSTANDARD1_3 && !NET6_0
#if !NETSTANDARD1_3 && !NET8_0_OR_GREATER
using System.Security.Permissions;
#endif

Expand Down Expand Up @@ -113,6 +113,9 @@ public AutoprefixerProcessingException(string message, Exception innerException)
/// </summary>
/// <param name="info">The object that holds the serialized data</param>
/// <param name="context">The contextual information about the source or destination</param>
#if NET8_0_OR_GREATER
[Obsolete(DiagnosticId = "SYSLIB0051")]
#endif
private AutoprefixerProcessingException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
Expand All @@ -134,8 +137,10 @@ private AutoprefixerProcessingException(SerializationInfo info, StreamingContext
/// </summary>
/// <param name="info">The <see cref="SerializationInfo"/> to populate with data</param>
/// <param name="context">The destination (see <see cref="StreamingContext"/>) for this serialization</param>
#if !NET6_0
#if !NET8_0_OR_GREATER
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
#else
[Obsolete(DiagnosticId = "SYSLIB0051")]
#endif
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ProcessingOptions value
if (!string.IsNullOrWhiteSpace(value.Stats))
{
writer.WritePropertyName("stats");
#if !MODERN_JSON_CONVERTER || NET6_0_OR_GREATER
#if !MODERN_JSON_CONVERTER || NET8_0_OR_GREATER
writer.WriteRawValue(stats);
#else
writer.WriteStringValue(stats);
Expand Down
3 changes: 2 additions & 1 deletion src/AutoprefixerHost/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
=============
RELEASE NOTES
=============
Added support for the Autoprefixer version 10.4.20.0.
1. No longer supports a .NET 6;
2. Added support for .NET 8.

============
PROJECT SITE
Expand Down

0 comments on commit 75d7dba

Please sign in to comment.