From 9294f61e289f51665d542a3eb0791d9419c764f4 Mon Sep 17 00:00:00 2001 From: David Negstad Date: Wed, 31 Jan 2024 08:28:21 -0800 Subject: [PATCH 1/2] Update dashboard discovery to use .dll --- eng/dashboardpack/Sdk.targets | 3 +-- src/Aspire.Hosting/build/Aspire.Hosting.targets | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/eng/dashboardpack/Sdk.targets b/eng/dashboardpack/Sdk.targets index 53efbd5df8..f3dc800b33 100644 --- a/eng/dashboardpack/Sdk.targets +++ b/eng/dashboardpack/Sdk.targets @@ -5,8 +5,7 @@ $([MSBuild]::NormalizeDirectory($(MSBuildThisFileDirectory), '..', 'tools')) $([MSBuild]::EnsureTrailingSlash('$(AspireDashboardDir)')) - $([MSBuild]::NormalizePath($(AspireDashboardDir), 'Aspire.Dashboard')) - $(AspireDashboardPath).exe + $([MSBuild]::NormalizePath($(AspireDashboardDir), 'Aspire.Dashboard.dll')) diff --git a/src/Aspire.Hosting/build/Aspire.Hosting.targets b/src/Aspire.Hosting/build/Aspire.Hosting.targets index 6ddaa06950..05e3b5b1b1 100644 --- a/src/Aspire.Hosting/build/Aspire.Hosting.targets +++ b/src/Aspire.Hosting/build/Aspire.Hosting.targets @@ -17,7 +17,7 @@ - + @@ -111,7 +111,7 @@ internal static class ]]>%(ClassName) nonExecutableReferences = new HashSet(); - + foreach (var appProject in AppProjectTargetFramework) { var additionalProperties = appProject.GetMetadata("AdditionalPropertiesFromProject"); @@ -120,7 +120,7 @@ internal static class ]]>%(ClassName)%(ClassName) $([MSBuild]::EnsureTrailingSlash('$(AspireDashboardDir)')) - $([MSBuild]::NormalizePath($(AspireDashboardDir), 'Aspire.Dashboard')) - $(AspireDashboardPath).exe + $([MSBuild]::NormalizePath($(AspireDashboardDir), 'Aspire.Dashboard.dll')) From 2621000488457903db8eb7102c15673588e21b72 Mon Sep 17 00:00:00 2001 From: David Negstad Date: Wed, 31 Jan 2024 11:00:01 -0800 Subject: [PATCH 2/2] Only override for Mac --- eng/dashboardpack/Sdk.targets | 4 +++- src/Aspire.Hosting/build/Aspire.Hosting.targets | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/eng/dashboardpack/Sdk.targets b/eng/dashboardpack/Sdk.targets index f3dc800b33..f903ca475d 100644 --- a/eng/dashboardpack/Sdk.targets +++ b/eng/dashboardpack/Sdk.targets @@ -5,7 +5,9 @@ $([MSBuild]::NormalizeDirectory($(MSBuildThisFileDirectory), '..', 'tools')) $([MSBuild]::EnsureTrailingSlash('$(AspireDashboardDir)')) - $([MSBuild]::NormalizePath($(AspireDashboardDir), 'Aspire.Dashboard.dll')) + $([MSBuild]::NormalizePath($(AspireDashboardDir), 'Aspire.Dashboard')) + $(AspireDashboardPath).exe + $(AspireDashboardPath).dll diff --git a/src/Aspire.Hosting/build/Aspire.Hosting.targets b/src/Aspire.Hosting/build/Aspire.Hosting.targets index 05e3b5b1b1..521182535a 100644 --- a/src/Aspire.Hosting/build/Aspire.Hosting.targets +++ b/src/Aspire.Hosting/build/Aspire.Hosting.targets @@ -209,7 +209,9 @@ internal static class ]]>%(ClassName) $([MSBuild]::EnsureTrailingSlash('$(AspireDashboardDir)')) - $([MSBuild]::NormalizePath($(AspireDashboardDir), 'Aspire.Dashboard.dll')) + $([MSBuild]::NormalizePath($(AspireDashboardDir), 'Aspire.Dashboard')) + $(AspireDashboardPath).exe + $(AspireDashboardPath).dll