Skip to content

Fix double writes for M.Extensions xml docs#84839

Merged
ViktorHofer merged 1 commit intomainfrom
FixDoubleWritesXml
Apr 14, 2023
Merged

Fix double writes for M.Extensions xml docs#84839
ViktorHofer merged 1 commit intomainfrom
FixDoubleWritesXml

Conversation

@ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Apr 14, 2023

We don't need the binplace item anymore as the intellisense.targets file already takes care of copying / setting docs xml files.
Also stop generating an xml file for shim assemblies under src/libraries/shims as such don't contain any source code.

Fixes #84762

With these changes, the libs subset doesn't have any double writes anymore.

I also verified that produced package still contain their corresponding xml files:

  • Microsoft.Internal.Runtime.AspNetCore.Transport.nupkg
  • Microsoft.Extension.*

and same for the artifacts\bin\runtime\net8.0-...\ folder.

We don't need the binplace item anymore as the intellisense.targets file
already takes care of copying / setting docs xml files.

Also stop generating an xml file for shim assemblies under
src/libraries/shims as such don't contain any source code.

Fixes #84762
@ghost
Copy link

ghost commented Apr 14, 2023

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

Issue Details

We don't need the binplace item anymore as the intellisense.targets file already takes care of copying / setting docs xml files.
Also stop generating an xml file for shim assemblies under src/libraries/shims as such don't contain any source code.

Fixes #84762

With these changes, the libs subset doesn't have any double writes anymore.

Author: ViktorHofer
Assignees: ViktorHofer
Labels:

area-Infrastructure-libraries

Milestone: -

@ViktorHofer ViktorHofer merged commit a0e23f4 into main Apr 14, 2023
@ViktorHofer ViktorHofer deleted the FixDoubleWritesXml branch April 14, 2023 15:47
<GetBinPlaceItemsDependsOn Condition="$(MSBuildProjectName.StartsWith('Microsoft.Extensions.'))">$(GetBinPlaceItemsDependsOn);AddDocumentationFileAsBinPlaceItemForExtensionsProjects</GetBinPlaceItemsDependsOn>
</PropertyGroup>

<Target Name="AddDocumentationFileAsBinPlaceItemForExtensionsProjects"
Copy link
Contributor

Choose a reason for hiding this comment

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

@ViktorHofer I saw you suggested in the issue to potentially move this to intellisense.targets. Do we still want to do that?

Copy link
Member Author

Choose a reason for hiding this comment

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

You can't move something that no longer exists. At least not in the reality that we currently live in.

@ghost ghost locked as resolved and limited conversation to collaborators May 14, 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.

Tons of double writes because of intellisense xml docs binplacing

3 participants