Browse Source
Merge pull request #8688 from abpframework/volo/issue/6429
Cli: Fix AppTemplateSwitchEntityFrameworkCoreToMongoDbStep bug for older projects
pull/8718/head
Alper Ebicoglu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
18 additions and
3 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/Templates/App/AppTemplateSwitchEntityFrameworkCoreToMongoDbStep.cs
|
|
|
@ -227,7 +227,12 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|
|
|
string oldReference, |
|
|
|
string newReference) |
|
|
|
{ |
|
|
|
var file = context.GetFile(targetProjectFilePath); |
|
|
|
var file = context.FindFile(targetProjectFilePath); |
|
|
|
|
|
|
|
if (file == null) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
file.NormalizeLineEndings(); |
|
|
|
|
|
|
|
@ -253,7 +258,12 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|
|
|
string oldKeyword, |
|
|
|
string newKeyword) |
|
|
|
{ |
|
|
|
var file = context.GetFile(targetModuleFilePath); |
|
|
|
var file = context.FindFile(targetModuleFilePath); |
|
|
|
|
|
|
|
if (file == null) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
file.NormalizeLineEndings(); |
|
|
|
|
|
|
|
@ -278,7 +288,12 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App |
|
|
|
ProjectBuildContext context, |
|
|
|
string appsettingFilePath) |
|
|
|
{ |
|
|
|
var file = context.GetFile(appsettingFilePath); |
|
|
|
var file = context.FindFile(appsettingFilePath); |
|
|
|
|
|
|
|
if (file == null) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
file.NormalizeLineEndings(); |
|
|
|
|
|
|
|
|