Skip to content

Commit

Permalink
fix: .NET 8 build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyakunin committed Nov 29, 2023
1 parent c6417f3 commit 8aadb10
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Stl.Fusion.Blazor/Components/ComponentExt.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#if !NET8_0_OR_GREATER
using System.Reflection.Emit;
#else
using Microsoft.AspNetCore.Components.Rendering;
#endif
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Rendering;
using Microsoft.AspNetCore.Components.RenderTree;

namespace Stl.Fusion.Blazor;
Expand Down Expand Up @@ -87,7 +84,7 @@ public static bool ShouldSetParameters(this ComponentBase component, ParameterVi
return componentInfo.ShouldSetParameters(component, parameterView) || !component.IsInitialized();
}

#if USE_UNSAFE_ACCESSORS && NET8_0_OR_GREATER
#if !(USE_UNSAFE_ACCESSORS && NET8_0_OR_GREATER)
static ComponentExt()
{
var bfInstanceNonPublic = BindingFlags.Instance | BindingFlags.NonPublic;
Expand Down

0 comments on commit 8aadb10

Please sign in to comment.