dotnet / dotnet/msbuild

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

Open
#12,166 4 comments 0 reactions 0 assignees View on GitHub
Area: Documentation Area: Solution (.sln) help wanted triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

### 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.