@@ -310,7 +310,7 @@ protected override async Task<int> ExecuteAsync(ParseResult parseResult, Cancell
310310
311311 endpointsGrid . AddRow (
312312 firstEndpoint ? new Align ( new Markup ( $ "[bold green]{ endpointsLocalizedString } [/]:") , HorizontalAlignment . Right ) : Text . Empty ,
313- new Markup ( $ "[bold]{ resource } [/] [grey]has endpoint[/] [link={ endpoint } ]{ endpoint } [/]")
313+ new Markup ( $ "[bold]{ resource . EscapeMarkup ( ) } [/] [grey]has endpoint[/] [link={ endpoint . EscapeMarkup ( ) } ]{ endpoint . EscapeMarkup ( ) } [/]")
314314 ) ;
315315
316316 var endpointsPadder = new Padder ( endpointsGrid , new Padding ( 3 , 0 ) ) ;
@@ -348,31 +348,31 @@ protected override async Task<int> ExecuteAsync(ParseResult parseResult, Cancell
348348 catch ( AppHostIncompatibleException ex )
349349 {
350350 Telemetry . RecordError ( ex . Message , ex ) ;
351- return InteractionService . DisplayIncompatibleVersionError ( ex , ex . RequiredCapability ) ;
351+ return InteractionService . DisplayIncompatibleVersionError ( ex , ex . AspireHostingVersion ?? ex . RequiredCapability ) ;
352352 }
353353 catch ( CertificateServiceException ex )
354354 {
355- var errorMessage = string . Format ( CultureInfo . CurrentCulture , TemplatingStrings . CertificateTrustError , ex . Message . EscapeMarkup ( ) ) ;
355+ var errorMessage = string . Format ( CultureInfo . CurrentCulture , TemplatingStrings . CertificateTrustError , ex . Message ) ;
356356 Telemetry . RecordError ( errorMessage , ex ) ;
357357 InteractionService . DisplayError ( errorMessage ) ;
358358 return ExitCodeConstants . FailedToTrustCertificates ;
359359 }
360360 catch ( FailedToConnectBackchannelConnection ex )
361361 {
362- var errorMessage = string . Format ( CultureInfo . CurrentCulture , InteractionServiceStrings . ErrorConnectingToAppHost , ex . Message . EscapeMarkup ( ) ) ;
362+ var errorMessage = string . Format ( CultureInfo . CurrentCulture , InteractionServiceStrings . ErrorConnectingToAppHost , ex . Message ) ;
363363 Telemetry . RecordError ( errorMessage , ex ) ;
364364 InteractionService . DisplayError ( errorMessage ) ;
365365 // Don't display raw output - it's already in the log file
366- InteractionService . DisplayMessage ( "page_facing_up" , string . Format ( CultureInfo . CurrentCulture , InteractionServiceStrings . SeeLogsAt , ExecutionContext . LogFilePath ) ) ;
366+ InteractionService . DisplayMessage ( "page_facing_up" , string . Format ( CultureInfo . CurrentCulture , InteractionServiceStrings . SeeLogsAt , ExecutionContext . LogFilePath . EscapeMarkup ( ) ) ) ;
367367 return ExitCodeConstants . FailedToDotnetRunAppHost ;
368368 }
369369 catch ( Exception ex )
370370 {
371- var errorMessage = string . Format ( CultureInfo . CurrentCulture , InteractionServiceStrings . UnexpectedErrorOccurred , ex . Message . EscapeMarkup ( ) ) ;
371+ var errorMessage = string . Format ( CultureInfo . CurrentCulture , InteractionServiceStrings . UnexpectedErrorOccurred , ex . Message ) ;
372372 Telemetry . RecordError ( errorMessage , ex ) ;
373373 InteractionService . DisplayError ( errorMessage ) ;
374374 // Don't display raw output - it's already in the log file
375- InteractionService . DisplayMessage ( "page_facing_up" , string . Format ( CultureInfo . CurrentCulture , InteractionServiceStrings . SeeLogsAt , ExecutionContext . LogFilePath ) ) ;
375+ InteractionService . DisplayMessage ( "page_facing_up" , string . Format ( CultureInfo . CurrentCulture , InteractionServiceStrings . SeeLogsAt , ExecutionContext . LogFilePath . EscapeMarkup ( ) ) ) ;
376376 return ExitCodeConstants . FailedToDotnetRunAppHost ;
377377 }
378378 }
@@ -850,7 +850,7 @@ private async Task<int> ExecuteDetachedAsync(ParseResult parseResult, FileInfo?
850850 _interactionService . DisplayMessage ( "magnifying_glass_tilted_right" , string . Format (
851851 CultureInfo . CurrentCulture ,
852852 RunCommandStrings . CheckLogsForDetails ,
853- _fileLoggerProvider . LogFilePath ) ) ;
853+ _fileLoggerProvider . LogFilePath . EscapeMarkup ( ) ) ) ;
854854
855855 return ExitCodeConstants . FailedToDotnetRunAppHost ;
856856 }
0 commit comments