File tree 1 file changed +7
-1
lines changed
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()
119
119
InstallDestination = Destination . HasValue ( ) ? Destination . Value ( ) : _manifest . DefaultDestination ;
120
120
if ( string . IsNullOrWhiteSpace ( InstallDestination ) )
121
121
{
122
- string destinationHint = Path . Combine ( Settings . DefaultDestinationRoot , ProviderToUse . GetSuggestedDestination ( library ) ) ;
122
+ string destinationHint = string . Join ( '/' , Settings . DefaultDestinationRoot , ProviderToUse . GetSuggestedDestination ( library ) ) ;
123
123
InstallDestination = GetUserInputWithDefault (
124
124
fieldName : nameof ( Destination ) ,
125
125
defaultFieldValue : destinationHint ,
@@ -132,6 +132,12 @@ protected override async Task<int> ExecuteInternalAsync()
132
132
destinationToUse = InstallDestination ;
133
133
}
134
134
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
+
135
141
ILibraryOperationResult result = await _manifest . InstallLibraryAsync (
136
142
library . Name ,
137
143
library . Version ,
You can’t perform that action at this time.
0 commit comments