Skip to content

Commit adb78e1

Browse files
committed
combine from test utilities
1 parent 35f0223 commit adb78e1

File tree

4 files changed

+35
-26
lines changed

4 files changed

+35
-26
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
#if NETFRAMEWORK
5+
6+
namespace System.Runtime.CompilerServices;
7+
8+
internal static class IsExternalInit
9+
{
10+
}
11+
12+
#endif
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
#if NETFRAMEWORK
5+
6+
namespace System;
7+
8+
internal static class FrameworkExtensions
9+
{
10+
extension(OperatingSystem)
11+
{
12+
public static bool IsLinux() => false;
13+
public static bool IsWindows() => true;
14+
public static bool IsMacOS() => false;
15+
}
16+
}
17+
18+
#endif

tests/Aspire.TestUtilities/Aspire.TestUtilities.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
<PackageReference Include="Microsoft.DotNet.XUnitV3Extensions" />
1010
<PackageReference Include="OpenTelemetry.Extensions.Hosting" />
1111
</ItemGroup>
12+
13+
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
14+
<PackageReference Include="Microsoft.Bcl.Memory" />
15+
</ItemGroup>
1216

17+
<Import Project="../../src/Shared/FxPolyfills/FxPolyfills.targets" />
1318
</Project>

tests/Aspire.TestUtilities/IsExternalInit.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)