File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ protected virtual async Task<bool> UpdatePackagesInFile(
167167 bool includePreRc = false )
168168 {
169169 var packagesUpdated = false ;
170- var fileContent = await File . ReadAllTextAsync ( filePath ) ;
170+ var fileContent = File . ReadAllText ( filePath ) ;
171171 var packageJson = JObject . Parse ( fileContent ) ;
172172 var abpPackages = GetAbpPackagesFromPackageJson ( packageJson ) ;
173173
@@ -189,8 +189,8 @@ protected virtual async Task<bool> UpdatePackagesInFile(
189189
190190 var updatedContent = packageJson . ToString ( Formatting . Indented ) ;
191191
192- await File . WriteAllTextAsync ( filePath , updatedContent ) ;
193-
192+ File . WriteAllText ( filePath , updatedContent ) ;
193+
194194 return packagesUpdated ;
195195 }
196196
@@ -210,7 +210,7 @@ protected virtual async Task<bool> TryUpdatingPackage(
210210
211211 if ( ! specifiedVersion . IsNullOrWhiteSpace ( ) )
212212 {
213- if ( package . Name . Contains ( "leptonx" , StringComparison . InvariantCultureIgnoreCase ) && ! specifiedLeptonXVersion . IsNullOrWhiteSpace ( ) )
213+ if ( package . Name . IndexOf ( "leptonx" , StringComparison . InvariantCultureIgnoreCase ) > 0 && ! specifiedLeptonXVersion . IsNullOrWhiteSpace ( ) )
214214 {
215215 if ( ! SpecifiedVersionExists ( specifiedLeptonXVersion , package ) )
216216 {
You can’t perform that action at this time.
0 commit comments