You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: avoid NETSDK1023 and respect _MTPExplicitlySet in test injection
- Skip xunit injection when user already has xunit packages (prevents
NETSDK1023 duplicate PackageReference warning)
- Respect _MTPExplicitlySet when overriding OutputType (preserves
ANCPSDK001 safety guard for MTP+Library contradiction)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
<!-- Check if xUnit is already present (user-supplied or from another source) -->
25
26
<ItemGroup>
27
+
<_ExistingXunitInclude="@(PackageReference)"Condition="'%(Identity)' == 'xunit.v3' OR '%(Identity)' == 'xunit.v3.mtp-v1' OR '%(Identity)' == 'xunit.v3.mtp-v2' OR '%(Identity)' == 'xunit.v3.mtp-off'"/>
28
+
</ItemGroup>
29
+
<!-- Only inject if not already present (avoids NETSDK1023 duplicate warning) -->
0 commit comments