Skip to content

Commit

Permalink
Make the doc file swap happen before copying to bin
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstj committed Jan 23, 2023
1 parent c1b46ae commit 94849ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions eng/intellisense.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
</Choose>

<!-- TODO: Remove this target when no library relies on the intellisense documentation file anymore.-->
<Target Name="ChangeDocumentationFileForPackaging"
AfterTargets="DocumentationProjectOutputGroup"
<Target Name="ChangeDocumentationFile"
BeforeTargets="CopyFilesToOutputDirectory"
Condition="'$(UseIntellisenseDocumentationFile)' == 'true'">
<ItemGroup>
<DocumentationProjectOutputGroupOutput Remove="@(DocumentationProjectOutputGroupOutput)" />
<DocumentationProjectOutputGroupOutput Include="$(IntellisenseFilePath)" />
<DocFileItem Remove="@(DocFileItem)" />
<DocFileItem Include="$(IntellisenseFilePath)" />
</ItemGroup>
</Target>

<Target Name="CopyDocumentationFileToXmlDocDir"
AfterTargets="CopyFilesToOutputDirectory"
Condition="'$(IsNetCoreAppSrc)' == 'true' and '$(TargetFramework)' == '$(NetCoreAppCurrent)'"
DependsOnTargets="ChangeDocumentationFileForPackaging">
<Copy SourceFiles="@(DocumentationProjectOutputGroupOutput)"
DependsOnTargets="ChangeDocumentationFile">
<Copy SourceFiles="@(DocFileItem)"
DestinationFolder="$(XmlDocDir)"
SkipUnchangedFiles="true"
UseHardlinksIfPossible="true" />
Expand Down

0 comments on commit 94849ba

Please sign in to comment.