microsoft / microsoft/aspire

builder.AddProject(name, projectPath) overload

Open
#10,439 1 comment 1 reaction 1 assignee Assigned to @Copilot View on GitHub
area-app-model
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

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

_No response_

### Describe the solution you'd like

Instead of having to specify the csproj, we should have an overload that looks in a directory for one - if there are multiple it can throw and tell you to use the specific overload with t he filename. This is how we do it for node and python ie
`builder.AddNpmApp("app", "../pathToCode")`

so dotnet proj would look like
`builderAddProject("app", "../PathToCode.Folder")`
instead of
`builderAddProject("app", "../PathToCode.Folder/PathToCode.Folder.csproj")`

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.