Merge branch 'prkrishn/fix-xplat' into dev
This commit is contained in:
commit
91c7960465
|
|
@ -6,6 +6,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Server.IntegrationTesting;
|
using Microsoft.AspNetCore.Server.IntegrationTesting;
|
||||||
using Microsoft.DotNet.Cli.Utils;
|
using Microsoft.DotNet.Cli.Utils;
|
||||||
|
|
@ -74,9 +75,14 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Precompilation
|
||||||
{
|
{
|
||||||
RestoreProject(ClassLibraryPath);
|
RestoreProject(ClassLibraryPath);
|
||||||
ExecuteForClassLibrary(Command.CreateDotNet("build", new[] { ClassLibraryPath, "-c", "Release" }));
|
ExecuteForClassLibrary(Command.CreateDotNet("build", new[] { ClassLibraryPath, "-c", "Release" }));
|
||||||
ExecuteForClassLibrary(Command.CreateDotNet(
|
|
||||||
"razor-precompile",
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
GetPrecompileArguments("net451")));
|
{
|
||||||
|
// Don't run precompile tool for net451 on xplat.
|
||||||
|
ExecuteForClassLibrary(Command.CreateDotNet(
|
||||||
|
"razor-precompile",
|
||||||
|
GetPrecompileArguments("net451")));
|
||||||
|
}
|
||||||
|
|
||||||
ExecuteForClassLibrary(Command.CreateDotNet(
|
ExecuteForClassLibrary(Command.CreateDotNet(
|
||||||
"razor-precompile",
|
"razor-precompile",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue