Skip to content

Commit

Permalink
Fix project names
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc committed Nov 23, 2024
1 parent 1710d40 commit b171320
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
<UserSecretsId>b43d9a6d-f7bd-491d-b1f9-82372d537e4e</UserSecretsId>
<RootNamespace>SemanticWorkench.Aspire.AppHost</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,13 @@ internal sealed class VirtualEnvironment(string virtualEnvironmentPath)
{
string[] allowedExtensions = [".exe", ".cmd", ".bat"];

foreach (var allowedExtension in allowedExtensions)
{
string executablePath = Path.Join(virtualEnvironmentPath, "Scripts", name + allowedExtension);

if (File.Exists(executablePath))
{
return executablePath;
}
}
}
else
{
var executablePath = Path.Join(virtualEnvironmentPath, "bin", name);

if (File.Exists(executablePath))
{
return executablePath;
}
return allowedExtensions
.Select(allowedExtension => Path.Join(virtualEnvironmentPath, "Scripts", name + allowedExtension))
.FirstOrDefault(File.Exists);
}

return null;
var executablePath = Path.Join(virtualEnvironmentPath, "bin", name);
return File.Exists(executablePath) ? executablePath : null;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireSharedProject>true</IsAspireSharedProject>
<RootNamespace>SemanticWorkench.Aspire.ServiceDefaults</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions aspire-orchestrator/SemanticWorkbench.Aspire.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Visual Studio Version 17
VisualStudioVersion = 17.8.0.0
MinimumVisualStudioVersion = 17.8.0.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SemanticWorkench.Aspire.AppHost", "SemanticWorkench.Aspire.AppHost\SemanticWorkench.Aspire.AppHost.csproj", "{85D9E2AF-8F25-4006-A375-A66E2259CB69}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SemanticWorkbench.Aspire.AppHost", "SemanticWorkbench.Aspire.AppHost\SemanticWorkbench.Aspire.AppHost.csproj", "{85D9E2AF-8F25-4006-A375-A66E2259CB69}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SemanticWorkench.Aspire.ServiceDefaults", "SemanticWorkench.Aspire.ServiceDefaults\SemanticWorkench.Aspire.ServiceDefaults.csproj", "{1A1BA42B-F071-42ED-BF6D-4BD51F2D7A41}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SemanticWorkbench.Aspire.ServiceDefaults", "SemanticWorkbench.Aspire.ServiceDefaults\SemanticWorkbench.Aspire.ServiceDefaults.csproj", "{1A1BA42B-F071-42ED-BF6D-4BD51F2D7A41}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dotnet-03-simple-chatbot", "..\examples\dotnet\dotnet-03-simple-chatbot\dotnet-03-simple-chatbot.csproj", "{670F22E3-71CC-4A9B-8BB8-DA855CFC0EEC}"
EndProject
Expand Down

0 comments on commit b171320

Please sign in to comment.