Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit 419d91f

Browse files
pranavkmvijayrkn
authored andcommitted
Set AddRazorSupportForMvc in the WebSDK (#527)
Fixes dotnet/aspnetcore#6392
1 parent 6daed07 commit 419d91f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Web/Targets/Sdk.targets

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ Copyright (c) .NET Foundation. All rights reserved.
1111
-->
1212
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1313

14+
<PropertyGroup>
15+
<!--
16+
Configure the Razor SDK to add support for the MVC configuration unless the project configured it or the user opted out of the implicit reference to
17+
Microsoft.AspNetCore.App.
18+
-->
19+
<AddRazorSupportForMvc Condition="'$(DisableImplicitFrameworkReferences)' != 'true' And '$(AddRazorSupportForMvc)' != 'true'">true</AddRazorSupportForMvc>
20+
</PropertyGroup>
21+
1422
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
1523

1624
<Import Sdk="Microsoft.NET.Sdk.Razor" Project="Sdk.targets" />

0 commit comments

Comments
 (0)