Skip to content
Open
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions src/Aspire.Cli/Projects/ProjectLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,12 @@ await Parallel.ForEachAsync(appHostFiles, parallelOptions, async (candidateFile,
logger.LogDebug("Using project file {ProjectFile}", projectFile.FullName);
return projectFile;
}
// Handle .fsproj files
else if (projectFile.Extension.Equals(".fsproj", StringComparison.OrdinalIgnoreCase))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than duplicating the csproj branch, how about having a collection of project file extensions (csproj, fsproj, vbproj) and check whether the extension matches any of them.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test adjusted, support for the mentioned extensions added.

{
logger.LogDebug("Using project file {ProjectFile}", projectFile.FullName);
return projectFile;
}
// Reject other extensions
else
{
Expand Down