Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Aspire.Cli/DotNetCliRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,15 +336,15 @@ public async Task<int> NewProjectAsync(string templateName, string name, string
internal static string GetBackchannelSocketPath()
{
var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
var dotnetCliPath = Path.Combine(homeDirectory, ".dotnet", "aspire", "cli", "backchannels");
var aspireCliPath = Path.Combine(homeDirectory, ".aspire", "cli", "backchannels");

if (!Directory.Exists(dotnetCliPath))
if (!Directory.Exists(aspireCliPath))
{
Directory.CreateDirectory(dotnetCliPath);
Directory.CreateDirectory(aspireCliPath);
}

var uniqueSocketPathSegment = Guid.NewGuid().ToString("N");
var socketPath = Path.Combine(dotnetCliPath, $"cli.sock.{uniqueSocketPathSegment}");
var socketPath = Path.Combine(aspireCliPath, $"cli.sock.{uniqueSocketPathSegment}");
return socketPath;
}

Expand Down
8 changes: 4 additions & 4 deletions tests/Aspire.Hosting.Tests/Utils/UnixSocketHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ internal static class UnixSocketHelper
public static string GetBackchannelSocketPath()
{
var homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
var dotnetCliPath = Path.Combine(homeDirectory, ".dotnet", "aspire", "cli", "backchannels");
var aspireCliPath = Path.Combine(homeDirectory, ".aspire", "cli", "backchannels");

if (!Directory.Exists(dotnetCliPath))
if (!Directory.Exists(aspireCliPath))
{
Directory.CreateDirectory(dotnetCliPath);
Directory.CreateDirectory(aspireCliPath);
}

var uniqueSocketPathSegment = Guid.NewGuid().ToString("N");
var socketPath = Path.Combine(dotnetCliPath, $"cli.sock.{uniqueSocketPathSegment}");
var socketPath = Path.Combine(aspireCliPath, $"cli.sock.{uniqueSocketPathSegment}");
return socketPath;
}

Expand Down