Skip to content

Commit 275aa28

Browse files
committed
Revert "Special case Identity APIs for XML"
This reverts commit 048240f.
1 parent 048240f commit 275aa28

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/OpenApi/build/Microsoft.AspNetCore.OpenApi.targets

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
<ItemGroup>
99
<AdditionalFiles
1010
Include="@(ReferencePath->'%(RootDir)%(Directory)%(Filename).xml')"
11-
Condition="
12-
'%(ReferencePath.Extension)' == '.dll' AND
13-
Exists('%(ReferencePath.RootDir)%(ReferencePath.Directory)%(ReferencePath.Filename).xml') AND
14-
('%(ReferencePath.ReferenceSourceTarget)' == 'ProjectReference' OR
15-
'%(ReferencePath.FileName)' == 'Microsoft.AspNetCore.Identity')"
11+
Condition="'%(ReferencePath.Extension)' == '.dll' AND
12+
Exists('%(ReferencePath.RootDir)%(ReferencePath.Directory)%(ReferencePath.Filename).xml') AND
13+
('%(ReferencePath.ReferenceSourceTarget)' == 'ProjectReference')"
1614
KeepMetadata="Identity" />
1715
</ItemGroup>
1816
</Target>

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.Build.Tests/GenerateAdditionalXmlFilesForOpenApiTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public void VerifiesTargetGeneratesXmlFiles()
3737
// Captures ProjectReferences and PackageReferences in project.
3838
var identities = additionalFiles.Select(x => x["Identity"]).ToArray();
3939
Assert.Collection(identities,
40-
x => Assert.EndsWith("ClassLibrary.xml", x),
41-
x => Assert.EndsWith("Microsoft.AspNetCore.Identity.xml", x)
40+
x => Assert.EndsWith("ClassLibrary.xml", x)
4241
);
4342
}
4443

0 commit comments

Comments
 (0)