File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ protected override async Task<int> ExecuteInternalAsync()
119119 InstallDestination = Destination . HasValue ( ) ? Destination . Value ( ) : _manifest . DefaultDestination ;
120120 if ( string . IsNullOrWhiteSpace ( InstallDestination ) )
121121 {
122- string destinationHint = Path . Combine ( Settings . DefaultDestinationRoot , ProviderToUse . GetSuggestedDestination ( library ) ) ;
122+ string destinationHint = string . Join ( '/' , Settings . DefaultDestinationRoot , ProviderToUse . GetSuggestedDestination ( library ) ) ;
123123 InstallDestination = GetUserInputWithDefault (
124124 fieldName : nameof ( Destination ) ,
125125 defaultFieldValue : destinationHint ,
@@ -132,6 +132,12 @@ protected override async Task<int> ExecuteInternalAsync()
132132 destinationToUse = InstallDestination ;
133133 }
134134
135+ if ( destinationToUse is not null )
136+ {
137+ // in case the user changed the suggested default, normalize separator to /
138+ destinationToUse = destinationToUse . Replace ( '\\ ' , '/' ) ;
139+ }
140+
135141 ILibraryOperationResult result = await _manifest . InstallLibraryAsync (
136142 library . Name ,
137143 library . Version ,
You can’t perform that action at this time.
0 commit comments