diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs index 3082f59807..bb9360b550 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectModification/NugetPackageToLocalReferenceConverter.cs @@ -5,6 +5,8 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Abstractions; using Volo.Abp.Cli.Utils; using Volo.Abp.DependencyInjection; @@ -12,6 +14,12 @@ namespace Volo.Abp.Cli.ProjectModification; public class NugetPackageToLocalReferenceConverter : ITransientDependency { + public ILogger Logger { get; set; } + + public NugetPackageToLocalReferenceConverter(){ + Logger = NullLogger.Instance; + } + public async Task Convert(ModuleWithMastersInfo module, string solutionFile, string modulePrefix = "Volo.") { var nugetPackageList = GetNugetPackages(module); @@ -30,6 +38,12 @@ public class NugetPackageToLocalReferenceConverter : ITransientDependency foreach (var projectFile in projectFiles) { + if (!File.Exists(projectFile)) + { + Logger.LogWarning($"{projectFile} could not be found, skipping..."); + return; + } + var content = File.ReadAllText(projectFile); using (var stream = StreamHelper.GenerateStreamFromString(content)) { diff --git a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/appsettings.json b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/appsettings.json index 00f7dcefe2..2d7115408e 100644 --- a/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/appsettings.json +++ b/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/appsettings.json @@ -3,7 +3,7 @@ "SelfUrl": "https://localhost:44301", "ClientUrl": "http://localhost:4200", "CorsOrigins": "https://*.MyProjectName.com,http://localhost:4200,https://localhost:44307,https://localhost:44300", - "RedirectAllowedUrls": "http://localhost:4200,https://localhost:44307" + "RedirectAllowedUrls": "http://localhost:4200,https://localhost:44302,https://localhost:44307,https://localhost:44309" }, "ConnectionStrings": { "Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=MyProjectName;Trusted_Connection=True"