Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to prevent project to be selectable as Startup #59599

Open
1 task done
sebestyn168 opened this issue Dec 22, 2024 · 0 comments
Open
1 task done

Find a way to prevent project to be selectable as Startup #59599

sebestyn168 opened this issue Dec 22, 2024 · 0 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Comments

@sebestyn168
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I have search and found an abandoned ticket originally opened for Blazor solutions.
#21699

And it's true I'd really like the Interactive Client project that doesn't have a launchSettings.json not to appear in the selection.
Image

But that's nothing compared to the aspire solution where only the last two projects are aspire projects with different configurations and which orchestrate all the other projects (so using launchSettings existence is not really an option).
Image

Describe the solution you'd like

Maybe the new solution format - slnx - has plan to address this topic
If not I would suggest adding a Start attribute on projects (maybe on the Folder) that should be in the start selection.
If no project have this attribute, fallback to the current way.

All in all the solution would look like this

<Solution>
  <Folder Name="/00-Aspire/">
    <Project Path="src/Aspire.***_1.csproj" Start/>
    <Project Path="src/Aspire.***_2.csproj" Start/>
  </Folder>
  <Foder Name="/01-Auth/">
  ...

In our case, all the aspire projects being in the same logical folder the Start attribute on the Folder would make sense

<Solution>
  <Folder Name="/00-Aspire/" Start>
    <Project Path="src/Aspire.***_1.csproj" />
    <Project Path="src/Aspire.***_2.csproj" />
  </Folder>
  <Foder Name="/01-Auth/">
  ...

Of course having the IDE allowing to configure these options by right clicking on the projects/folders would be great

Additional context

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

No branches or pull requests

1 participant