dotnet/msbuild

Add support for `after.{SolutionName}.slnx.targets` for slnx solutions

开放

#12,166 创建于 2025年7月14日

 (4 条评论) (0 个反应) (0 位负责人)C# (1,364 个派生)batch import
Area: DocumentationArea: Solution (.sln)help wantedtriaged

仓库指标

星标
 (5,062 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Summary

I stumbled on PR #11535 while working on a migration from .sln to .slnx. For me it seems to make sense that the after.{SolutionName}.slnx.targets should also work as it is an exact match to my solution name (including the extension). The documentation also says that both .sln and .slnx should work https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-solution-build?view=vs-2022. I wonder why it was decided to not support the after.{SolutionName}.slnx.targets.

Background and Motivation

It seems unintuitive that the after.{SolutionName}.slnx.targets, an exact match to the solution name is not supported.

Proposed Feature

Add support after.{SolutionName}.slnx.targets instead of only the .sln variant.

Alternative Designs

No response

贡献者指南