in src/Aspire.Hosting.AWS/Utils/ProjectUtilities.cs [107:123]
private static string GetLaunchSettings(string projectPath)
{
var parentDirectory = Path.GetDirectoryName(projectPath);
if (string.IsNullOrEmpty(parentDirectory))
throw new ArgumentException($"The project path '{projectPath}' is invalid. Unable to retrieve the '{Constants.LaunchSettingsFile}' file.");
var properties = Path.Combine(parentDirectory, "Properties");
if (!Directory.Exists(properties))
{
return "{}";
}
var fullPath = Path.Combine(properties, Constants.LaunchSettingsFile);
if (!File.Exists(fullPath))
return "{}";
return File.ReadAllText(fullPath);
}