Skip to content

Commit 779c96a

Browse files
committed
Make XML file discovery less eager
1 parent 6633e28 commit 779c96a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
Include="@(ReferencePath->'%(RootDir)%(Directory)%(Filename).xml')"
1111
Condition="'%(ReferencePath.Extension)' == '.dll' AND
1212
Exists('%(ReferencePath.RootDir)%(ReferencePath.Directory)%(ReferencePath.Filename).xml') AND
13-
('%(ReferencePath.ReferenceSourceTarget)' == 'ProjectReference' OR
14-
'%(ReferencePath.NuGetSourceType)' == 'Package')"
13+
('%(ReferencePath.ReferenceSourceTarget)' == 'ProjectReference')"
1514
KeepMetadata="Identity" />
1615
</ItemGroup>
1716
</Target>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +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.OpenApi.xml", x),
42-
x => Assert.EndsWith("Microsoft.OpenApi.xml", x)
40+
x => Assert.EndsWith("ClassLibrary.xml", x)
4341
);
4442
}
4543

0 commit comments

Comments
 (0)