-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Quality: Added root files to projects to make them easier to edit #16815
base: main
Are you sure you want to change the base?
Conversation
<ItemGroup> | ||
<None Include="$(MSBuildThisFileDirectory)\.editorconfig" /> | ||
<None Include="$(MSBuildThisFileDirectory)\Directory.Build.props" /> | ||
<None Include="$(MSBuildThisFileDirectory)\Directory.Packages.props" /> | ||
</ItemGroup> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will make them appear on all projects. Instead you should add them as solution items.
I would recommend holding up the change until we migrate to slnx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm aware of that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it's a better experience to add them to the project directly as they apply to every project
If it was an explicit .props
file that was in the actual project structure then I would add them to the solution, though since these files apply everywhere it makes sense to put them inside every project as None.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can create a virtual folder and add them to it in the solution file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lamparter we've just migrated to slnx and can move forward with these changes now.
Signed-off-by: Lamparter <[email protected]>
Adds
Directory.Packages.props
,Directory.Build.props
and.editorconfig
to all projects asNone
to make them appear in Solution Explorer. This makes them easier to edit.