Skip to content

Avoid adding project or solution files nested inside a project #51

@glopesdev

Description

@glopesdev

While authoring template packages, it is common to find both project (*.csproj) and solution (*.sln) files nested inside the template project. These are not proper projects, but rather template content files which will be processed as part of running dotnet new.

Currently, running prefect on such template projects will include these template project files in the solution as part of the general scan for *.csproj files, which is incorrect.

// Solution folders (and items)

Probably the most reliable heuristic will be to exclude any .csproj files nested inside a project folder, as I can see no reason we would ever want to include such nested project files, other than assets for template projects, unit tests, or code generation purposes, none of which require the .csproj file to be in the solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/reference-generalIssues concerning any reference template in generalaspect/build-infrastructureIssues concerning aspects of infrastructure for building code in reference templatesconcept/flexibilityIssues concerning flexibility and configurability of the reference templates

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions