Skip to content

Commit

Permalink
Change default to solution root location
Browse files Browse the repository at this point in the history
  • Loading branch information
timheuer committed Mar 7, 2024
1 parent 48fca44 commit 0bc2d4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Commands/ManifestGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e, Project projec

var projectPath = Path.GetDirectoryName(project.FullPath);

var solution = await VS.Solutions.GetCurrentSolutionAsync();
var solutionPath = Path.GetDirectoryName(solution.FullPath);

var options = await General.GetLiveInstanceAsync();

string manifestPath;
Expand All @@ -38,7 +41,7 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e, Project projec
}
else
{
manifestPath = Path.Combine(projectPath, options.DefaultPath);
manifestPath = Path.Combine(solutionPath, options.DefaultPath);
}

await VS.StatusBar.StartAnimationAsync(StatusAnimation.Build);
Expand Down
2 changes: 1 addition & 1 deletion src/Options/General.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class General : BaseOptionModel<General>
{
[Category("Manifest file")]
[DisplayName("Default path name")]
[Description("The default path of the folder where the manifest file will be generated")]
[Description("The default path of the folder where the manifest file will be generated. This will be at the solution root.")]
[DefaultValue(".aspire")]
public string DefaultPath { get; set; } = ".aspire";

Expand Down

0 comments on commit 0bc2d4c

Please sign in to comment.