Clean up a few ifdefs (#1016)

This commit is contained in:
Stephen Toub
2025-09-30 18:58:00 +00:00
committed by GitHub
parent a4e593c795
commit 2d2a5bcd66
5 changed files with 9 additions and 22 deletions
@@ -1,14 +1,14 @@
// Copyright (c) Microsoft. All rights reserved.
using System;
#if NET9_0_OR_GREATER
#if NET
using System.Buffers;
#endif
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
#if NET9_0_OR_GREATER
#if NET
using System.Text;
#endif
using System.Text.Json;
@@ -118,7 +118,7 @@ internal abstract class DeclarativeActionExecutor : Executor<ActionExecutorResul
$"""
STATE: {this.GetType().Name} [{this.Id}]
NAME: {targetPath}
VALUE:{valuePosition}{result.Format()} ({result.GetType().Name})
VALUE:{valuePosition}{resultValue} ({result.GetType().Name})
""");
#endif
}
+1 -1
View File
@@ -128,7 +128,7 @@ internal static class SampleEnvironment
public static bool HasShutdownStarted
=> SystemEnvironment.HasShutdownStarted;
#if NET9_0_OR_GREATER
#if NET
public static int ProcessId
=> SystemEnvironment.ProcessId;