Skip to content

Commit

Permalink
Fixing ifdef (#34218)
Browse files Browse the repository at this point in the history
  • Loading branch information
maryamariyan authored Mar 27, 2020
1 parent 469e98a commit 14a2f78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private static bool CanRunOnThisFramework(RuntimeFrameworks excludedFrameworks)
return true;
}

#if NET461 || NET46
#if NETFRAMEWORK
if (excludedFrameworks.HasFlag(RuntimeFrameworks.Mono) &&
TestPlatformHelper.IsMono)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
<Link>Common\tests\Extensions\TestingUtils\Microsoft.AspNetCore.Testing\src\xunit\RuntimeFrameworks.cs</Link>
</Compile>
</ItemGroup>

<ItemGroup Condition="'$(TargetsNetFx)' == 'true'">
<Compile Include="$(CommonTestPath)Extensions\TestingUtils\Microsoft.AspNetCore.Testing\src\TestPlatformHelper.cs">
<Link>Common\tests\Extensions\TestingUtils\Microsoft.AspNetCore.Testing\src\TestPlatformHelper.cs</Link>
</Compile>
</ItemGroup>

<ItemGroup>
<ReferenceFromRuntime Include="Microsoft.Extensions.Configuration.Xml" />
Expand Down

0 comments on commit 14a2f78

Please sign in to comment.