From e64954c9c738c71424a1cb3397a8bbbb11a7a5be Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Sat, 20 Jan 2018 18:42:28 -0800 Subject: [PATCH] Undo compatibility error messages We're going another way with Razor SDK interop. The Web SDK will make a choice whether to enable MvcPrecompilation or RazorSDK, and the Razor SDK will support all of the settings from MvcPrecompilation. --- .gitignore | 1 + ...AspNetCore.Mvc.Razor.Compatibility.targets | 95 ------------------- ...AspNetCore.Mvc.Razor.ViewCompilation.props | 11 --- ...pNetCore.Mvc.Razor.ViewCompilation.targets | 10 +- testapps/Directory.Build.props | 3 - 5 files changed, 2 insertions(+), 118 deletions(-) delete mode 100644 src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.Compatibility.targets delete mode 100644 src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.props diff --git a/.gitignore b/.gitignore index 18dc1b7b58..15a9207874 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,5 @@ node_modules *.orig BuildInfo.generated.cs msbuild.log +msbuild.binlog global.json diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.Compatibility.targets b/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.Compatibility.targets deleted file mode 100644 index 15adbc0dd9..0000000000 --- a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.Compatibility.targets +++ /dev/null @@ -1,95 +0,0 @@ - - - - <_MvcPrecompilationExplicitlyEnabled Condition="'$(MvcRazorCompileOnPublish)'=='true'">true - <_MvcPrecompilationExplicitlyDisabled Condition="'$(MvcRazorCompileOnPublish)'=='false'">true - <_RazorSdkExplicitlyEnabled Condition="'$(RazorCompileOnBuild)'=='true' or '$(RazorCompileOnPublish)'=='true'">true - <_RazorSdkExplicitlyDisabled Condition="'$(RazorCompileOnBuild)'=='false' and '$(RazorCompileOnPublish)'=='false'">true - - - - - <_RazorSdkCompatibilityError Include="Using the Razor SDK (RazorCompileOnBuild or RazorCompileOnPublish) and MvcPrecompilation (MvcRazorCompileOnPublish) together is not supported'."/> - - - - - false - false - - - - - false - false - - - - - <_MvcPrecompilationImplicitlyEnabled>true - - - - - false - false - - - - - <_RazorSdkCompatibilityError Include="Using the Razor SDK (RazorCompileOnBuild or RazorCompileOnPublish) and MvcRazorFilesToCompile together is not supported. To disable the Razor SDK targets, and use MvcPrecompilation set the property 'MvcRazorCompileOnPublish' to 'true' in the project file. To use the Razor SDK instead, replace 'MvcRazorFilesToCompile' with 'RazorGenerate'"/> - - - - diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.props b/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.props deleted file mode 100644 index a777086900..0000000000 --- a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.props +++ /dev/null @@ -1,11 +0,0 @@ - - - - - $(MSBuildThisFileDirectory)Microsoft.AspNetCore.Mvc.Razor.Compatibility.targets - - - \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets b/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets index e026bad426..a004fb4821 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets +++ b/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/build/netstandard2.0/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets @@ -1,14 +1,7 @@ - - - - - + $(IntermediateOutputPath) @@ -170,7 +163,6 @@ diff --git a/testapps/Directory.Build.props b/testapps/Directory.Build.props index 70cec336b5..4f2b2a52d6 100644 --- a/testapps/Directory.Build.props +++ b/testapps/Directory.Build.props @@ -14,7 +14,4 @@ false false - - -