From c98631c0eb2124b047cf090442690e970aa158cf Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 16 Dec 2025 10:15:31 +0100 Subject: [PATCH] [dotnet] Fix computing the app bundle location for 'dotnet run' for desktop apps. Use '$(_AppBundleName)' for the name of the app bundle, and '$(_NativeExecutableName)' for the name of the executable. --- dotnet/targets/Xamarin.Shared.Sdk.targets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/targets/Xamarin.Shared.Sdk.targets b/dotnet/targets/Xamarin.Shared.Sdk.targets index ff4b955ec017..c6f3be76c3a2 100644 --- a/dotnet/targets/Xamarin.Shared.Sdk.targets +++ b/dotnet/targets/Xamarin.Shared.Sdk.targets @@ -2550,11 +2550,11 @@ <_OpenArgumentsPre Condition="'$(OpenWaitForExit)' == 'true'">$(_OpenArgumentsPre) -W <_OpenArguments>$(_OpenArguments) $(RunEnvironment) open - $(_OpenArgumentsPre) -a "$(TargetDir)/$(AssemblyName).app" $(OpenArguments) $(_OpenArguments) --args + $(_OpenArgumentsPre) -a "$(TargetDir)/$(_AppBundleName).app" $(OpenArguments) $(_OpenArguments) --args - $(TargetDir)/$(AssemblyName).app/Contents/MacOS/$(AssemblyName) + $(TargetDir)/$(_AppBundleName).app/Contents/MacOS/$(_NativeExecutableName)