Skip to content

Remove SolutionFilterName support#6363

Merged
benvillalobos merged 2 commits intodotnet:mainfrom
Forgind:without-solutionfiiltername
Apr 22, 2021
Merged

Remove SolutionFilterName support#6363
benvillalobos merged 2 commits intodotnet:mainfrom
Forgind:without-solutionfiiltername

Conversation

@Forgind
Copy link
Copy Markdown
Contributor

@Forgind Forgind commented Apr 21, 2021

We decided that adding support for a SolutionFilterName property was premature. The point of a solution filter is to permit loading or building only a subset of a more complicated solution file. Of note, however, it is not to permit changing behavior based on which subset is being built—if a full solution is buildable, any associated solution filter file should be as well. Furthermore, if that information is not properly propagated within Visual Studio, it may lead to different behavior when building from the command line versus Visual Studio.

Copy link
Copy Markdown
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the right move. It's bad practice to have a difference in build behavior within a project based on the environment the project was built in, and adding this information just makes that more likely.

@benvillalobos
Copy link
Copy Markdown
Member

There's one spot SolutionFilterName still exists. It's in a deprecated file, but it was added there so it should be removed from there.

C:\src\git\msbuild>rg -Fi "SolutionFilterName"
src\Deprecated\Engine\Solution\SolutionWrapperProject.cs
1611:                msbuildTask.SetParameterValue("Properties", "Configuration=%(Configuration); Platform=%(Platform); BuildingSolutionFile=true; CurrentSolutionConfigurationContents=$(CurrentSolutionConfigurationContents); SolutionDir=$(SolutionDir); SolutionExt=$(SolutionExt); SolutionFileName=$(SolutionFileName); SolutionName=$(SolutionName); SolutionFilterName=$(SolutionFilterName); SolutionPath=$(SolutionPath)");

@Forgind
Copy link
Copy Markdown
Contributor Author

Forgind commented Apr 22, 2021

image
(Good catch 😁)

@benvillalobos benvillalobos added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label Apr 22, 2021
@benvillalobos benvillalobos merged commit 8d5fa43 into dotnet:main Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants