Skip to content

Commit da15dbc

Browse files
authored
[dotnet] Fix computing the app bundle location for 'dotnet run' for desktop apps. (#24468)
Use '$(_AppBundleName)' for the name of the app bundle, and '$(_NativeExecutableName)' for the name of the executable.
1 parent 1477706 commit da15dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/targets/Xamarin.Shared.Sdk.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2550,11 +2550,11 @@
25502550
<_OpenArgumentsPre Condition="'$(OpenWaitForExit)' == 'true'">$(_OpenArgumentsPre) -W </_OpenArgumentsPre>
25512551
<_OpenArguments>$(_OpenArguments) $(RunEnvironment)</_OpenArguments>
25522552
<RunCommand>open</RunCommand>
2553-
<RunArguments>$(_OpenArgumentsPre) -a "$(TargetDir)/$(AssemblyName).app" $(OpenArguments) $(_OpenArguments) --args</RunArguments>
2553+
<RunArguments>$(_OpenArgumentsPre) -a "$(TargetDir)/$(_AppBundleName).app" $(OpenArguments) $(_OpenArguments) --args</RunArguments>
25542554
</PropertyGroup>
25552555

25562556
<PropertyGroup Condition="'$(RunWithOpen)' == 'false'">
2557-
<RunCommand>$(TargetDir)/$(AssemblyName).app/Contents/MacOS/$(AssemblyName)</RunCommand>
2557+
<RunCommand>$(TargetDir)/$(_AppBundleName).app/Contents/MacOS/$(_NativeExecutableName)</RunCommand>
25582558
<RunArguments />
25592559
</PropertyGroup>
25602560
</Target>

0 commit comments

Comments
 (0)