Cli: Fix AppTemplateSwitchEntityFrameworkCoreToMongoDbStep bug for older projects

pull/8688/head
Yunus Emre Kalkan 5 years ago
parent 13e5b655f7
commit 9380051e60

@ -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();

Loading…
Cancel
Save