Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHX committed Oct 21, 2024
1 parent 1e4662a commit 99bb5ca
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/Sdk/Utils/DotNetMuxer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@

/// https://github.com/dotnet/aspnetcore/blob/main/src/Shared/CommandLineUtils/Utilities/DotNetMuxer.cs

using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;

namespace Sdk.Utils
{
/// <summary>
Expand Down Expand Up @@ -34,19 +41,6 @@ public static string MuxerPathOrDefault()

private static string? TryFindMuxerPath()

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (alpine-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / package

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (alpine-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (linux-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (linux-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (win-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (win-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (win-arm64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (win-x86, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (osx-x64, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (win-x86, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / deploy

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / CodeQL-Build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (win-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (osx-arm64, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm, false)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 42 in src/Sdk/Utils/DotNetMuxer.cs

View workflow job for this annotation

GitHub Actions / build (alpine-arm, true)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
// If not running on Helix, use a custom .NET host, if specified.
// This allows test projects to use a .NET host with the custom-built
// ASP.NET Core shared framework.
if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("helix")))
{
var dotNetHostOverride = typeof(DotNetMuxer).Assembly.GetCustomAttributes<AssemblyMetadataAttribute>()
.SingleOrDefault(a => a.Key == "DotNetHostOverride")?.Value;
if (dotNetHostOverride is not null)
{
return dotNetHostOverride;
}
}

var expectedFileName = MuxerName;
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Expand Down

0 comments on commit 99bb5ca

Please sign in to comment.