Skip to content

Commit 0bc2d4c

Browse files
committed
Change default to solution root location
1 parent 48fca44 commit 0bc2d4c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Commands/ManifestGen.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e, Project projec
2727

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

30+
var solution = await VS.Solutions.GetCurrentSolutionAsync();
31+
var solutionPath = Path.GetDirectoryName(solution.FullPath);
32+
3033
var options = await General.GetLiveInstanceAsync();
3134

3235
string manifestPath;
@@ -38,7 +41,7 @@ protected override async Task ExecuteAsync(OleMenuCmdEventArgs e, Project projec
3841
}
3942
else
4043
{
41-
manifestPath = Path.Combine(projectPath, options.DefaultPath);
44+
manifestPath = Path.Combine(solutionPath, options.DefaultPath);
4245
}
4346

4447
await VS.StatusBar.StartAnimationAsync(StatusAnimation.Build);

src/Options/General.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class General : BaseOptionModel<General>
1313
{
1414
[Category("Manifest file")]
1515
[DisplayName("Default path name")]
16-
[Description("The default path of the folder where the manifest file will be generated")]
16+
[Description("The default path of the folder where the manifest file will be generated. This will be at the solution root.")]
1717
[DefaultValue(".aspire")]
1818
public string DefaultPath { get; set; } = ".aspire";
1919

0 commit comments

Comments
 (0)