Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Commit 883114b

Browse files
author
N. Taylor Mullen
committed
Skip desktop testing to work around corefx issue.
#128
1 parent 82a301d commit 883114b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/RuntimeFlavors.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ public static IEnumerable<RuntimeFlavor> SupportedFlavors
1515
get
1616
{
1717
yield return RuntimeFlavor.CoreClr;
18-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
19-
{
20-
yield return RuntimeFlavor.Clr;
21-
}
18+
// Can't run on CLR until https://github.com/dotnet/corefx/issues/20364 is resolved.
19+
//if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
20+
//{
21+
// yield return RuntimeFlavor.Clr;
22+
//}
2223
}
2324
}
2425

test/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.FunctionalTests/SimpleAppX86DesktopOnlyTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public SimpleAppX86DesktopOnlyTest(SimpleAppX86DesktopOnlyFixture fixture)
1616

1717
public ApplicationTestFixture Fixture { get; }
1818

19-
[Fact]
19+
[Fact(Skip = "https://github.com/dotnet/corefx/issues/20364")]
2020
public async Task Precompilation_WorksForSimpleApps()
2121
{
2222
// Arrange

testapps/ClassLibraryWithPrecompiledViews/ClassLibraryWithPrecompiledViews.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="$(AspNetCoreVersion)" />
1212
</ItemGroup>
1313

14-
<Target Name="PrecompileRazorViews" AfterTargets="Build" DependsOnTargets="MvcRazorPrecompile" Condition="'$(TargetFramework)'!=''" />
14+
<Target Name="PrecompileRazorViews" AfterTargets="Build" DependsOnTargets="MvcRazorPrecompile" Condition="'$(TargetFramework)'!='' AND '$(TargetFramework)'!='net461'" />
1515

1616
</Project>

0 commit comments

Comments
 (0)