Skip to content

Best way to exclude *.sln files? #1525

@bricelam

Description

@bricelam

We have different *.sln files in the root of our repo. We have one solution that includes every project, and we use additional solution files to exclude projects that are irrelevant to certain development activities. Excluding these projects improves dev-time perf in VS.

Since the shell scripts include all files matching *.sln in the root, the best way I found to exclude these dev-only solution is via this eng\Build.props file:

<Project>
  <ItemGroup>
    <ProjectToBuild Remove="$(RepoRoot)EFCore.Runtime.sln" />
    <ProjectToBuild Remove="$(RepoRoot)EFCore.Cosmos.sln" />
    <ProjectToBuild Remove="$(RepoRoot)Microsoft.Data.Sqlite.sln" />
  </ItemGroup>
</Project>

Is there a better way? Should it be documented? Do most repos really want to include all solution files in the root by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions