Skip to content

Commit 4a493ee

Browse files
authored
Don't run publish-specific Mvc.Testing tasks if project is not publishable (#43329) (#48364)
1 parent 7335b22 commit 4a493ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mvc/Mvc.Testing/src/Microsoft.AspNetCore.Mvc.Testing.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</ItemGroup>
4747
</Target>
4848

49-
<Target Name="_GeneratePublishTestManifest" BeforeTargets="Publish" DependsOnTargets="_ResolveMvcTestProjectReferences">
49+
<Target Name="_GeneratePublishTestManifest" Condition="$(IsPublishable) == 'true'" BeforeTargets="Publish" DependsOnTargets="_ResolveMvcTestProjectReferences">
5050
<ItemGroup>
5151
<_PublishManifestProjects Include="%(_ContentRootProjectReferences.FusionName)">
5252
<ContentRoot>~</ContentRoot>

0 commit comments

Comments
 (0)