Browse Source

fix: 修复代码生成

pull/126/head
wangjun 3 years ago
parent
commit
ddc57d9052
  1. 3
      aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/AbpProCliCoreModule.cs
  2. 10
      aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/NewCommand.cs
  3. 6
      aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Options/LionAbpProTemplateOptions.cs
  4. 11
      aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/SourceCode/SourceCodeContext.cs
  5. 11
      aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/SourceCode/SourceCodeManager.cs
  6. 357
      aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Utils/ReplaceHelper.cs
  7. 159
      aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Utils/ReplacePackageReferenceExtensions.cs

3
aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/AbpProCliCoreModule.cs

@ -48,7 +48,8 @@ public class AbpProCliCoreModule : AbpModule
//ExcludeFiles = "aspnet-core,vben28,abp-vnext-pro-nuget-all,abp-vnext-pro-nuget-simplify,docs,.github,LICENSE,Readme.md", //ExcludeFiles = "aspnet-core,vben28,abp-vnext-pro-nuget-all,abp-vnext-pro-nuget-simplify,docs,.github,LICENSE,Readme.md",
ReplaceSuffix = ".sln,.csproj,.cs,.cshtml,.json,.ci,.yml,.yaml,.nswag,.DotSettings,.env", ReplaceSuffix = ".sln,.csproj,.cs,.cshtml,.json,.ci,.yml,.yaml,.nswag,.DotSettings,.env",
OldCompanyName = "MyCompanyName", OldCompanyName = "MyCompanyName",
OldProjectName = "MyProjectName" OldProjectName = "MyProjectName",
OldModuleName = "MyModuleName",
}, },
}; };
}); });

10
aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Commands/NewCommand.cs

@ -58,6 +58,7 @@ public class NewCommand : IConsoleCommand, ITransientDependency
context.ReplaceSuffix = templateOptions.ReplaceSuffix; context.ReplaceSuffix = templateOptions.ReplaceSuffix;
context.OldCompanyName = templateOptions.OldCompanyName; context.OldCompanyName = templateOptions.OldCompanyName;
context.OldProjectName = templateOptions.OldProjectName; context.OldProjectName = templateOptions.OldProjectName;
context.OldModuleName = templateOptions.OldModuleName;
// if (commandLineArgs.Target.IsNullOrWhiteSpace()) // if (commandLineArgs.Target.IsNullOrWhiteSpace())
// { // {
// GetUsageInfo(); // GetUsageInfo();
@ -82,6 +83,15 @@ public class NewCommand : IConsoleCommand, ITransientDependency
return; return;
} }
//校验是否输入项目名称
context.ModuleName = commandLineArgs.Options.GetOrNull(CommandOptions.Module.Short, CommandOptions.Module.Long);
if (context.TemplateKey == "abp-vnext-pro-nuget-module" && context.ModuleName.IsNullOrWhiteSpace())
{
_logger.LogError("请输入模块名称");
GetUsageInfo();
return;
}
var outputFolder = commandLineArgs.Options.GetOrNull(CommandOptions.OutputFolder.Short, CommandOptions.OutputFolder.Long); var outputFolder = commandLineArgs.Options.GetOrNull(CommandOptions.OutputFolder.Short, CommandOptions.OutputFolder.Long);
outputFolder = outputFolder != null ? Path.GetFullPath(outputFolder) : Directory.GetCurrentDirectory(); outputFolder = outputFolder != null ? Path.GetFullPath(outputFolder) : Directory.GetCurrentDirectory();

6
aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Options/LionAbpProTemplateOptions.cs

@ -42,7 +42,9 @@ public class LionAbpProTemplateOptions
public bool IsSource { get; set; } public bool IsSource { get; set; }
public string OldCompanyName { get; set; } public string OldCompanyName { get; set; } = string.Empty;
public string OldProjectName { get; set; } public string OldProjectName { get; set; } = string.Empty;
public string OldModuleName { get; set; } = string.Empty;
} }

11
aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/SourceCode/SourceCodeContext.cs

@ -26,6 +26,11 @@ public class SourceCodeContext
/// 替换ProjectName /// 替换ProjectName
/// </summary> /// </summary>
public string OldProjectName { get; set; } public string OldProjectName { get; set; }
/// <summary>
/// 替换ModuleName
/// </summary>
public string OldModuleName { get; set; }
/// <summary> /// <summary>
/// New CompanyName /// New CompanyName
/// </summary> /// </summary>
@ -34,6 +39,12 @@ public class SourceCodeContext
/// New ProjectName /// New ProjectName
/// </summary> /// </summary>
public string ProjectName { get; set; } public string ProjectName { get; set; }
/// <summary>
/// New ModuleName
/// </summary>
public string ModuleName { get; set; }
/// <summary> /// <summary>
/// 输入文件夹 /// 输入文件夹
/// </summary> /// </summary>

11
aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/SourceCode/SourceCodeManager.cs

@ -120,7 +120,16 @@ public class SourceCodeManager : ITransientDependency, ISourceCodeManager
{ {
try try
{ {
ReplaceHelper.ReplaceTemplates(context.ExtractProjectPath, context.OldCompanyName, context.OldProjectName, context.CompanyName, context.ProjectName, context.ReplaceSuffix); ReplaceHelper.ReplaceTemplates(
context.ExtractProjectPath,
context.OldCompanyName,
context.OldProjectName,
context.OldModuleName,
context.CompanyName,
context.ProjectName,
context.ModuleName,
context.ReplaceSuffix);
if (context.IsSource) if (context.IsSource)
{ {
context.TemplateFolder = context.ExtractProjectPath; context.TemplateFolder = context.ExtractProjectPath;

357
aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Utils/ReplaceHelper.cs

@ -2,19 +2,19 @@
public static class ReplaceHelper public static class ReplaceHelper
{ {
public static void ReplaceTemplates(string sourcePath, string oldCompanyName, string oldProjectName, string companyName, string projectName, string replaceSuffix) // public static void ReplaceTemplates(string sourcePath, string oldCompanyName, string oldProjectName, string companyName, string projectName, string replaceSuffix)
{ // {
try // try
{ // {
RenameTemplate(sourcePath, oldCompanyName, oldProjectName, companyName, projectName, replaceSuffix); // RenameTemplate(sourcePath, oldCompanyName, oldProjectName, companyName, projectName, replaceSuffix);
} // }
catch (Exception ex) // catch (Exception ex)
{ // {
throw new UserFriendlyException($"生成模板失败{ex.Message}"); // throw new UserFriendlyException($"生成模板失败{ex.Message}");
} // }
} // }
private static void ReplaceTemplates(string sourcePath, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName, public static void ReplaceTemplates(string sourcePath, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName,
string replaceSuffix) string replaceSuffix)
{ {
try try
@ -27,12 +27,12 @@ public static class ReplaceHelper
} }
} }
private static void RenameTemplate(string sourcePath, string oldCompanyName, string oldProjectName, string companyName, string projectName, string replaceSuffix) // private static void RenameTemplate(string sourcePath, string oldCompanyName, string oldProjectName, string companyName, string projectName, string replaceSuffix)
{ // {
RenameAllDirectories(sourcePath, oldCompanyName, oldProjectName, companyName, projectName); // RenameAllDirectories(sourcePath, oldCompanyName, oldProjectName, companyName, projectName);
//
RenameAllFileNameAndContent(sourcePath, oldCompanyName, oldProjectName, companyName, projectName, replaceSuffix); // RenameAllFileNameAndContent(sourcePath, oldCompanyName, oldProjectName, companyName, projectName, replaceSuffix);
} // }
private static void RenameTemplate(string sourcePath, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName, private static void RenameTemplate(string sourcePath, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName,
string replaceSuffix) string replaceSuffix)
@ -41,29 +41,29 @@ public static class ReplaceHelper
RenameAllFileNameAndContent(sourcePath, oldCompanyName, oldProjectName, oldModuleName, companyName, projectName, moduleName, replaceSuffix); RenameAllFileNameAndContent(sourcePath, oldCompanyName, oldProjectName, oldModuleName, companyName, projectName, moduleName, replaceSuffix);
} }
private static void RenameAllDirectories(string sourcePath, string oldCompanyName, string oldProjectName, string companyName, string projectName) // private static void RenameAllDirectories(string sourcePath, string oldCompanyName, string oldProjectName, string companyName, string projectName)
{ // {
var directories = Directory.GetDirectories(sourcePath); // var directories = Directory.GetDirectories(sourcePath);
foreach (var subDirectory in directories) // foreach (var subDirectory in directories)
{ // {
RenameAllDirectories(subDirectory, oldCompanyName, oldProjectName, companyName, projectName); // RenameAllDirectories(subDirectory, oldCompanyName, oldProjectName, companyName, projectName);
//
var directoryInfo = new DirectoryInfo(subDirectory); // var directoryInfo = new DirectoryInfo(subDirectory);
if (directoryInfo.Name.Contains(oldCompanyName) || // if (directoryInfo.Name.Contains(oldCompanyName) ||
directoryInfo.Name.Contains(oldProjectName)) // directoryInfo.Name.Contains(oldProjectName))
{ // {
var oldDirectoryName = directoryInfo.Name; // var oldDirectoryName = directoryInfo.Name;
var newDirectoryName = oldDirectoryName.CustomReplace(oldCompanyName, oldProjectName, companyName, projectName); // var newDirectoryName = oldDirectoryName.CustomReplace(oldCompanyName, oldProjectName, companyName, projectName);
//
var newDirectoryPath = Path.Combine(directoryInfo.Parent?.FullName, newDirectoryName); // var newDirectoryPath = Path.Combine(directoryInfo.Parent?.FullName, newDirectoryName);
//
if (directoryInfo.FullName != newDirectoryPath) // if (directoryInfo.FullName != newDirectoryPath)
{ // {
directoryInfo.MoveTo(newDirectoryPath); // directoryInfo.MoveTo(newDirectoryPath);
} // }
} // }
} // }
} // }
private static void RenameAllDirectories(string sourcePath, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName) private static void RenameAllDirectories(string sourcePath, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName)
{ {
@ -90,45 +90,45 @@ public static class ReplaceHelper
} }
} }
private static void RenameAllFileNameAndContent(string sourcePath, string oldCompanyName, string oldProjectName, string companyName, string projectName, string replaceSuffix) // private static void RenameAllFileNameAndContent(string sourcePath, string oldCompanyName, string oldProjectName, string companyName, string projectName, string replaceSuffix)
{ // {
var list = new DirectoryInfo(sourcePath) // var list = new DirectoryInfo(sourcePath)
.GetFiles() // .GetFiles()
.Where(f => replaceSuffix.Contains(f.Extension)) // .Where(f => replaceSuffix.Contains(f.Extension))
.ToList(); // .ToList();
//
var encoding = new UTF8Encoding(false); // var encoding = new UTF8Encoding(false);
foreach (var fileInfo in list) // foreach (var fileInfo in list)
{ // {
// 改文件内容 // // 改文件内容
var oldContents = File.ReadAllText(fileInfo.FullName, encoding); // var oldContents = File.ReadAllText(fileInfo.FullName, encoding);
var newContents = oldContents.CustomReplace(oldCompanyName, oldProjectName, companyName, projectName); // var newContents = oldContents.CustomReplace(oldCompanyName, oldProjectName, companyName, projectName);
//
// 文件名包含模板关键字 // // 文件名包含模板关键字
if (fileInfo.Name.Contains(oldCompanyName) // if (fileInfo.Name.Contains(oldCompanyName)
|| fileInfo.Name.Contains(oldProjectName)) // || fileInfo.Name.Contains(oldProjectName))
{ // {
var oldFileName = fileInfo.Name; // var oldFileName = fileInfo.Name;
var newFileName = oldFileName.CustomReplace(oldCompanyName, oldProjectName, companyName, projectName); // var newFileName = oldFileName.CustomReplace(oldCompanyName, oldProjectName, companyName, projectName);
//
var newFilePath = Path.Combine(fileInfo.DirectoryName, newFileName); // var newFilePath = Path.Combine(fileInfo.DirectoryName, newFileName);
// 无变化才重命名 // // 无变化才重命名
if (newFilePath != fileInfo.FullName) // if (newFilePath != fileInfo.FullName)
{ // {
File.Delete(fileInfo.FullName); // File.Delete(fileInfo.FullName);
} // }
//
File.WriteAllText(newFilePath, newContents, encoding); // File.WriteAllText(newFilePath, newContents, encoding);
} // }
else // else
File.WriteAllText(fileInfo.FullName, newContents, encoding); // File.WriteAllText(fileInfo.FullName, newContents, encoding);
} // }
//
foreach (var subDirectory in Directory.GetDirectories(sourcePath)) // foreach (var subDirectory in Directory.GetDirectories(sourcePath))
{ // {
RenameAllFileNameAndContent(subDirectory, oldCompanyName, oldProjectName, companyName, projectName, replaceSuffix); // RenameAllFileNameAndContent(subDirectory, oldCompanyName, oldProjectName, companyName, projectName, replaceSuffix);
} // }
} // }
private static void RenameAllFileNameAndContent(string sourcePath, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName, private static void RenameAllFileNameAndContent(string sourcePath, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName,
string replaceSuffix) string replaceSuffix)
@ -172,7 +172,24 @@ public static class ReplaceHelper
} }
} }
private static string CustomReplace(this string content, string oldCompanyName, string oldProjectName, string companyName, string projectName) // private static string CustomReplace(this string content, string oldCompanyName, string oldProjectName, string companyName, string projectName)
// {
// var result = content.ReplacePackageReferenceBasicManagement()
// .ReplacePackageReferenceLanguageManagement()
// .ReplacePackageReferenceFileManagement()
// .ReplacePackageReferenceDataDictionaryManagement()
// .ReplacePackageReferenceNotificationManagement()
// .ReplacePackageReferenceCore();
//
// result = result
// .Replace(oldCompanyName, companyName)
// .Replace(oldProjectName, projectName)
// ;
//
// return result;
// }
private static string CustomReplace(this string content, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName)
{ {
var result = content.ReplacePackageReferenceBasicManagement() var result = content.ReplacePackageReferenceBasicManagement()
.ReplacePackageReferenceLanguageManagement() .ReplacePackageReferenceLanguageManagement()
@ -181,185 +198,21 @@ public static class ReplaceHelper
.ReplacePackageReferenceNotificationManagement() .ReplacePackageReferenceNotificationManagement()
.ReplacePackageReferenceCore(); .ReplacePackageReferenceCore();
if (oldModuleName.IsNullOrWhiteSpace() || oldModuleName.IsNullOrWhiteSpace())
{
result = result result = result
.Replace(oldCompanyName, companyName) .Replace(oldCompanyName, companyName)
.Replace(oldProjectName, projectName) .Replace(oldProjectName, projectName);
;
return result;
} }
else
private static string CustomReplace(this string content, string oldCompanyName, string oldProjectName, string oldModuleName, string companyName, string projectName, string moduleName)
{ {
var result = content.ReplacePackageReferenceBasicManagement()
.ReplacePackageReferenceLanguageManagement()
.ReplacePackageReferenceFileManagement()
.ReplacePackageReferenceDataDictionaryManagement()
.ReplacePackageReferenceNotificationManagement()
.ReplacePackageReferenceCore();
result = result result = result
.Replace(oldCompanyName, companyName) .Replace(oldCompanyName, companyName)
.Replace(oldProjectName, projectName) .Replace(oldProjectName, projectName)
.Replace(oldModuleName, moduleName) .Replace(oldModuleName, moduleName);
;
return result;
}
public static string ReplacePackageReferenceCore(this string content)
{
return content
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\frameworks\\src\\Lion.AbpPro.Core\\Lion.AbpPro.Core.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.Core\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\aspnet-core\\frameworks\\src\\Lion.AbpPro.Core\\Lion.AbpPro.Core.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.Core\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\shared\\Lion.AbpPro.Shared.Hosting.Microservices\\Lion.AbpPro.Shared.Hosting.Microservices.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.Shared.Hosting.Microservices\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\shared\\Lion.AbpPro.Shared.Hosting.Gateways\\Lion.AbpPro.Shared.Hosting.Gateways.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.Shared.Hosting.Gateways\"/>")
;
} }
public static string ReplacePackageReferenceBasicManagement(this string content) return result;
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.Application\\Lion.AbpPro.BasicManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.Application.Contracts\\Lion.AbpPro.BasicManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.Application.Contracts\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.Domain\\Lion.AbpPro.BasicManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.Domain.Shared\\Lion.AbpPro.BasicManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.EntityFrameworkCore\\Lion.AbpPro.BasicManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.FreeSqlRepository\\Lion.AbpPro.BasicManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.HttpApi\\Lion.AbpPro.BasicManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.HttpApi.Client\\Lion.AbpPro.BasicManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.HttpApi.Client\"/>");
}
public static string ReplacePackageReferenceDataDictionaryManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.Application\\Lion.AbpPro.DataDictionaryManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.Application.Contracts\\Lion.AbpPro.DataDictionaryManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.Application.Contracts\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.Domain\\Lion.AbpPro.DataDictionaryManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.Domain.Shared\\Lion.AbpPro.DataDictionaryManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.EntityFrameworkCore\\Lion.AbpPro.DataDictionaryManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.FreeSqlRepository\\Lion.AbpPro.DataDictionaryManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.HttpApi\\Lion.AbpPro.DataDictionaryManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.HttpApi.Client\\Lion.AbpPro.DataDictionaryManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.HttpApi.Client\"/>");
}
public static string ReplacePackageReferenceFileManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.Application\\Lion.AbpPro.FileManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.Application.Contracts\\Lion.AbpPro.FileManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.Application.Contracts\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.Domain\\Lion.AbpPro.FileManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.Domain.Shared\\Lion.AbpPro.FileManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.EntityFrameworkCore\\Lion.AbpPro.FileManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.FreeSqlRepository\\Lion.AbpPro.FileManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.HttpApi\\Lion.AbpPro.FileManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.HttpApi.Client\\Lion.AbpPro.FileManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.HttpApi.Client\"/>");
}
public static string ReplacePackageReferenceLanguageManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.Application\\Lion.AbpPro.LanguageManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.Application.Contracts\\Lion.AbpPro.LanguageManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.Application.Contracts\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.Domain\\Lion.AbpPro.LanguageManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.Domain.Shared\\Lion.AbpPro.LanguageManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.EntityFrameworkCore\\Lion.AbpPro.LanguageManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.FreeSqlRepository\\Lion.AbpPro.LanguageManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.HttpApi\\Lion.AbpPro.LanguageManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.HttpApi.Client\\Lion.AbpPro.LanguageManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.HttpApi.Client\"/>");
} }
public static string ReplacePackageReferenceNotificationManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.Application\\Lion.AbpPro.NotificationManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.Application.Contracts\\Lion.AbpPro.NotificationManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.Application.Contracts\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.Domain\\Lion.AbpPro.NotificationManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.Domain.Shared\\Lion.AbpPro.NotificationManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.EntityFrameworkCore\\Lion.AbpPro.NotificationManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.FreeSqlRepository\\Lion.AbpPro.NotificationManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.HttpApi\\Lion.AbpPro.NotificationManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.HttpApi.Client\\Lion.AbpPro.NotificationManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.HttpApi.Client\"/>");
}
} }

159
aspnet-core/frameworks/src/Lion.AbpPro.Cli.Core/Lion/AbpPro/Cli/Utils/ReplacePackageReferenceExtensions.cs

@ -0,0 +1,159 @@
namespace Lion.AbpPro.Cli.Utils;
public static class ReplacePackageReferenceExtensions
{
public static string ReplacePackageReferenceCore(this string content)
{
return content
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\frameworks\\src\\Lion.AbpPro.Core\\Lion.AbpPro.Core.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.Core\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\aspnet-core\\frameworks\\src\\Lion.AbpPro.Core\\Lion.AbpPro.Core.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.Core\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\shared\\Lion.AbpPro.Shared.Hosting.Microservices\\Lion.AbpPro.Shared.Hosting.Microservices.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.Shared.Hosting.Microservices\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\shared\\Lion.AbpPro.Shared.Hosting.Gateways\\Lion.AbpPro.Shared.Hosting.Gateways.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.Shared.Hosting.Gateways\"/>")
;
}
public static string ReplacePackageReferenceBasicManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.Application\\Lion.AbpPro.BasicManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.Application.Contracts\\Lion.AbpPro.BasicManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.Application.Contracts\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.Domain\\Lion.AbpPro.BasicManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.Domain.Shared\\Lion.AbpPro.BasicManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.EntityFrameworkCore\\Lion.AbpPro.BasicManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.FreeSqlRepository\\Lion.AbpPro.BasicManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.HttpApi\\Lion.AbpPro.BasicManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\BasicManagement\\src\\Lion.AbpPro.BasicManagement.HttpApi.Client\\Lion.AbpPro.BasicManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.BasicManagement.HttpApi.Client\"/>");
}
public static string ReplacePackageReferenceDataDictionaryManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.Application\\Lion.AbpPro.DataDictionaryManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.Application.Contracts\\Lion.AbpPro.DataDictionaryManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.Application.Contracts\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.Domain\\Lion.AbpPro.DataDictionaryManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.Domain.Shared\\Lion.AbpPro.DataDictionaryManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.EntityFrameworkCore\\Lion.AbpPro.DataDictionaryManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.FreeSqlRepository\\Lion.AbpPro.DataDictionaryManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.HttpApi\\Lion.AbpPro.DataDictionaryManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\DataDictionaryManagement\\src\\Lion.AbpPro.DataDictionaryManagement.HttpApi.Client\\Lion.AbpPro.DataDictionaryManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.DataDictionaryManagement.HttpApi.Client\"/>");
}
public static string ReplacePackageReferenceFileManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.Application\\Lion.AbpPro.FileManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.Application.Contracts\\Lion.AbpPro.FileManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.Application.Contracts\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.Domain\\Lion.AbpPro.FileManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.Domain.Shared\\Lion.AbpPro.FileManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.EntityFrameworkCore\\Lion.AbpPro.FileManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.FreeSqlRepository\\Lion.AbpPro.FileManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace("<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.HttpApi\\Lion.AbpPro.FileManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\FileManagement\\src\\Lion.AbpPro.FileManagement.HttpApi.Client\\Lion.AbpPro.FileManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FileManagement.HttpApi.Client\"/>");
}
public static string ReplacePackageReferenceLanguageManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.Application\\Lion.AbpPro.LanguageManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.Application.Contracts\\Lion.AbpPro.LanguageManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.Application.Contracts\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.Domain\\Lion.AbpPro.LanguageManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.Domain.Shared\\Lion.AbpPro.LanguageManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.EntityFrameworkCore\\Lion.AbpPro.LanguageManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.FreeSqlRepository\\Lion.AbpPro.LanguageManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.HttpApi\\Lion.AbpPro.LanguageManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\LanguageManagement\\src\\Lion.AbpPro.LanguageManagement.HttpApi.Client\\Lion.AbpPro.LanguageManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.LanguageManagement.HttpApi.Client\"/>");
}
public static string ReplacePackageReferenceNotificationManagement(this string content)
{
return content
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.Application\\Lion.AbpPro.NotificationManagement.Application.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.Application\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.Application.Contracts\\Lion.AbpPro.NotificationManagement.Application.Contracts.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.Application.Contracts\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.Domain\\Lion.AbpPro.NotificationManagement.Domain.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.Domain\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.Domain.Shared\\Lion.AbpPro.NotificationManagement.Domain.Shared.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.Domain.Shared\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.EntityFrameworkCore\\Lion.AbpPro.NotificationManagement.EntityFrameworkCore.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.EntityFrameworkCore\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.FreeSqlRepository\\Lion.AbpPro.NotificationManagement.FreeSqlRepository.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.FreeSqlRepository\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.HttpApi\\Lion.AbpPro.NotificationManagement.HttpApi.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.HttpApi\"/>")
.Replace(
"<ProjectReference Include=\"..\\..\\..\\..\\..\\aspnet-core\\modules\\NotificationManagement\\src\\Lion.AbpPro.NotificationManagement.HttpApi.Client\\Lion.AbpPro.NotificationManagement.HttpApi.Client.csproj\"/>",
"<PackageReference Include=\"Lion.AbpPro.NotificationManagement.HttpApi.Client\"/>");
}
}
Loading…
Cancel
Save