Skip to content

Conversation

ViktorHofer
Copy link
Member

with the UseCompilerGeneratedDocXmlFile switch.

@ghost
Copy link

ghost commented Oct 31, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

with the UseCompilerGeneratedDocXmlFile switch.

Author: ViktorHofer
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@ViktorHofer ViktorHofer force-pushed the MakeXMLSourceOfTruthClear branch from 8d5852c to bc2ab84 Compare October 31, 2023 19:02
with the `UseCompilerGeneratedDocXmlFile` switch.
@ViktorHofer ViktorHofer force-pushed the MakeXMLSourceOfTruthClear branch from bc2ab84 to c90dcc8 Compare October 31, 2023 19:03
<Compile Include="System\Threading\RateLimiting\TranslatingLimiter.cs" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any advantage on switching their locations here?
Also, if they are ItemGroups with the exact same condition, wouldn't it be ok to group both ItemGroups into a single one?

Copy link
Member Author

Choose a reason for hiding this comment

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

Our convention is properties first, then compile and other items and last reference items. Keeping the reference items in a separate item group makes it easier to read a project's dependencies.

<Project>

<PropertyGroup>
<UseCompilerGeneratedDocXmlFile Condition="'$(UseCompilerGeneratedDocXmlFile)' == '' and $(MSBuildProjectName.StartsWith('Microsoft.Extensions.'))">true</UseCompilerGeneratedDocXmlFile>
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok I see. If true is treated as default, then all assemblies, except Cbor and Extensions, need the property explicitly mentioned in the csprojs.

@ViktorHofer ViktorHofer merged commit abda008 into main Oct 31, 2023
@ViktorHofer ViktorHofer deleted the MakeXMLSourceOfTruthClear branch October 31, 2023 20:36
@ghost ghost locked as resolved and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants