From 9e89a69a780aecf28f77469b91b464bfe5a8404d Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Thu, 27 Dec 2018 22:08:30 -0800 Subject: [PATCH] Update RazorCompilation.targets for new SDK --- .../HostedInAspNet.Server.csproj | 13 +- .../samples/MonoSanity/MonoSanity.csproj | 1 - .../ComponentsApp.Server.csproj | 1 - ...crosoft.AspNetCore.Components.Build.csproj | 4 +- .../targets/RazorCompilation.targets | 438 +----------------- ...ft.AspNetCore.Components.Build.Test.csproj | 4 +- .../testapps/TestServer/TestServer.csproj | 1 - 7 files changed, 36 insertions(+), 426 deletions(-) diff --git a/src/Components/blazor/samples/HostedInAspNet.Server/HostedInAspNet.Server.csproj b/src/Components/blazor/samples/HostedInAspNet.Server/HostedInAspNet.Server.csproj index 4fac23c0f5..4a72bd82a7 100644 --- a/src/Components/blazor/samples/HostedInAspNet.Server/HostedInAspNet.Server.csproj +++ b/src/Components/blazor/samples/HostedInAspNet.Server/HostedInAspNet.Server.csproj @@ -1,7 +1,18 @@ - + netcoreapp3.0 + + + false diff --git a/src/Components/blazor/samples/MonoSanity/MonoSanity.csproj b/src/Components/blazor/samples/MonoSanity/MonoSanity.csproj index 503326e547..266f7976ca 100644 --- a/src/Components/blazor/samples/MonoSanity/MonoSanity.csproj +++ b/src/Components/blazor/samples/MonoSanity/MonoSanity.csproj @@ -6,7 +6,6 @@ - diff --git a/src/Components/samples/ComponentsApp.Server/ComponentsApp.Server.csproj b/src/Components/samples/ComponentsApp.Server/ComponentsApp.Server.csproj index 97ac921fe4..40d92c7295 100644 --- a/src/Components/samples/ComponentsApp.Server/ComponentsApp.Server.csproj +++ b/src/Components/samples/ComponentsApp.Server/ComponentsApp.Server.csproj @@ -6,7 +6,6 @@ - diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.csproj b/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.csproj index 322bd288d2..6c244318e0 100644 --- a/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.csproj +++ b/src/Components/src/Microsoft.AspNetCore.Components.Build/Microsoft.AspNetCore.Components.Build.csproj @@ -1,7 +1,7 @@ - netcoreapp3.0 + netcoreapp3.0 Build mechanism for ASP.NET Core Components. Exe true @@ -60,7 +60,7 @@ repositorycommit=$(RepositoryCommit); - <_TargetFramework Include="$(TargetFrameworks)" /> + <_TargetFramework Include="$(TargetFramework)" /> diff --git a/src/Components/src/Microsoft.AspNetCore.Components.Build/targets/RazorCompilation.targets b/src/Components/src/Microsoft.AspNetCore.Components.Build/targets/RazorCompilation.targets index 7d06e76551..08386d7de3 100644 --- a/src/Components/src/Microsoft.AspNetCore.Components.Build/targets/RazorCompilation.targets +++ b/src/Components/src/Microsoft.AspNetCore.Components.Build/targets/RazorCompilation.targets @@ -1,436 +1,36 @@ + + This file now contains some *very temporary* settings to make projects + that use components use similar defaults to 2.X-based Blazor projects. + --> - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + <_EnableAllInclusiveRazorSdk>true + 3.0 + MVC-3.0 + false + false + false - - - - <_AngleSharpAssemblyPath>$(BlazorToolsDir)AngleSharp.dll - <_BlazorExtensionAssemblyPath>$(BlazorToolsDir)Microsoft.AspNetCore.Components.Razor.Extensions.dll - - - false - - Experimental - - - 0.1 - Blazor-$(BlazorLanguageVersion) - BlazorDeclaration-$(BlazorLanguageVersion) - $(BlazorDefinitionConfiguration) - - - - - <_BlazorGenerateDeclarationContent Include="@(Content->WithMetadataValue('Extension', '.cshtml'))" /> - - MSBuild:BlazorGenerateDeclaration - Never - - - - - - - Blazor-$(BlazorLanguageVersion);Blazor.AngleSharp-$(BlazorLanguageVersion);$(CustomRazorExtension) + + MVC-3.0;$(CustomRazorExtension) - - Blazor-$(BlazorLanguageVersion)Blazor.AngleSharp-$(BlazorLanguageVersion);$(CustomRazorExtension) - - - - AngleSharp - $(_AngleSharpAssemblyPath) + + Microsoft.AspNetCore.Mvc.Razor.Extensions + $(RazorSdkDirectoryRoot)extensions\mvc-3-0\Microsoft.AspNetCore.Mvc.Razor.Extensions.dll - - Microsoft.AspNetCore.Components.Razor.Extensions - $(_BlazorExtensionAssemblyPath) - - - - <_BlazorTempAssembly Include="$(IntermediateOutputPath)BlazorTemp\$(TargetName).dll" /> - - - + - - - _DefineBlazorPaths; - _ResolveBlazorInputs; - _AssignBlazorGenerateTargetPaths; - _HashBlazorGenerateInputs; - - - BlazorGenerateDeclaration; - BlazorResolveComponents; - - - - - - - - <_BlazorGenerateDeclarationComponentManifest>$(IntermediateOutputPath)Blazor.declaration.components.json - <_BlazorGenerateDefinitionComponentManifest>$(IntermediateOutputPath)Blazor.definition.components.json - <_BlazorComponentInputCache>$(IntermediateOutputPath)Blazor.components.input.cache - - - - + - + - - - - - - - - - - $(IntermediateOutputPath)$([System.IO.Path]::ChangeExtension('%(BlazorGenerateWithTargetPath.TargetPath)', 'g.i.cs')) - - - $(IntermediateOutputPath)$([System.IO.Path]::ChangeExtension('%(BlazorGenerateWithTargetPath.TargetPath)', 'g.cs')) - - - - - - - %(Identity) - - - - - - - - - - - - <_BlazorGenerateInputsHash> - <_BlazorGenerateInputsHashFile>$(IntermediateOutputPath)Blazor.inputs.txt - - - - - - - - - - - - - - - - - - - - <_BlazorGenerateDeclarationWithTargetPath Include="@(BlazorGenerateWithTargetPath)"> - %(GeneratedDeclaration) - - <_BlazorDeclarationConfiguration Include="@(RazorConfiguration->WithMetadataValue('Identity', '$(BlazorDeclarationConfiguration)'))" /> - - - - - - - - - - - - - - - - - - - - <_BlazorReferencePathWithRefAssemblies Include="@(ReferencePathWithRefAssemblies)" /> - <_BlazorReferencePathWithRefAssemblies Include="%(_BlazorTempAssembly.FullPath)" Condition="Exists('%(_BlazorTempAssembly.FullPath)')" /> - - - - <_BlazorDeclarationConfiguration Include="@(RazorConfiguration->WithMetadataValue('Identity', '$(BlazorDeclarationConfiguration)'))" /> - - - - - - - - - - - - - - - - - - - - <_BlazorGenerateDefinitionWithTargetPath Include="@(BlazorGenerateWithTargetPath)"> - %(GeneratedDefinition) - - <_BlazorDefinitionConfiguration Include="@(RazorConfiguration->WithMetadataValue('Identity', '$(BlazorDefinitionConfiguration)'))" /> - - - - - - - - - - - - - - - - - - - - - - - $(NoWarn);1701;1702 - - - - - $(NoWarn);2008 - - - - - - - - - - - $(AppConfig) - - - - - false - - - - - - - - - - true - - - - - - - - - - - diff --git a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Microsoft.AspNetCore.Components.Build.Test.csproj b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Microsoft.AspNetCore.Components.Build.Test.csproj index 6999589921..ebeec16b7c 100644 --- a/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Microsoft.AspNetCore.Components.Build.Test.csproj +++ b/src/Components/test/Microsoft.AspNetCore.Components.Build.Test/Microsoft.AspNetCore.Components.Build.Test.csproj @@ -23,12 +23,14 @@ - + + + diff --git a/src/Components/test/testapps/TestServer/TestServer.csproj b/src/Components/test/testapps/TestServer/TestServer.csproj index c30ffa69ea..abce454f2d 100644 --- a/src/Components/test/testapps/TestServer/TestServer.csproj +++ b/src/Components/test/testapps/TestServer/TestServer.csproj @@ -8,7 +8,6 @@ -