parent
6e88ea9429
commit
27c6ad410e
|
|
@ -15,10 +15,11 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
yield return RuntimeFlavor.CoreClr;
|
yield return RuntimeFlavor.CoreClr;
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
// Can't run on CLR until https://github.com/dotnet/corefx/issues/20364 is resolved.
|
||||||
{
|
//if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
yield return RuntimeFlavor.Clr;
|
//{
|
||||||
}
|
// yield return RuntimeFlavor.Clr;
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation
|
||||||
|
|
||||||
public ApplicationTestFixture Fixture { get; }
|
public ApplicationTestFixture Fixture { get; }
|
||||||
|
|
||||||
[Fact]
|
[Fact(Skip = "https://github.com/dotnet/corefx/issues/20364")]
|
||||||
public async Task Precompilation_WorksForSimpleApps()
|
public async Task Precompilation_WorksForSimpleApps()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,6 @@
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="$(AspNetCoreVersion)" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="$(AspNetCoreVersion)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="PrecompileRazorViews" AfterTargets="Build" DependsOnTargets="MvcRazorPrecompile" Condition="'$(TargetFramework)'!=''" />
|
<Target Name="PrecompileRazorViews" AfterTargets="Build" DependsOnTargets="MvcRazorPrecompile" Condition="'$(TargetFramework)'!='' AND '$(TargetFramework)'!='net461'" />
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue