Do not split warning message across multiple lines (dotnet/aspnetcore-tooling#432)

The newline in the warning messages causes the warning message to appear as two separate warnings in the build output:

Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(805,5): warning RAZORSDK1004: One or more Razor view or page files were found, but the project is not configured to add Razor support for MVC. The MSBuild property 'AddRazorSupportForMvc' must be set to correctly
Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(805,5): warning RAZORSDK1004:  compile Razor files that target MVC. For more information, see https://go.microsoft.com/fwlink/?linkid=868374.

This change fixes the warning message to appear as a single warning:

Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(805,5): warning RAZORSDK1004: One or more Razor view or page files were found, but the project is not configured to add Razor support for MVC. The MSBuild property 'AddRazorSupportForMvc' must be set to correctly compile Razor files that target MVC. For more information, see https://go.microsoft.com/fwlink/?linkid=868374.\n\nCommit migrated from 373bf2b74f
This commit is contained in:
Pranav K 2019-04-16 20:44:34 -07:00 committed by GitHub
parent 92e86f9d02
commit 2309e56de8
1 changed files with 2 additions and 4 deletions

View File

@ -802,8 +802,7 @@ Copyright (c) .NET Foundation. All rights reserved.
'$(_IsTargetingRazor2X)' != 'true'"> '$(_IsTargetingRazor2X)' != 'true'">
<Warning <Warning
Code="RAZORSDK1004" Code="RAZORSDK1004"
Text="One or more Razor view or page files were found, but the project is not configured to add Razor support for MVC. The MSBuild property 'AddRazorSupportForMvc' must be set to correctly Text="One or more Razor view or page files were found, but the project is not configured to add Razor support for MVC. The MSBuild property 'AddRazorSupportForMvc' must be set to correctly compile Razor files that target MVC. For more information, see https://go.microsoft.com/fwlink/?linkid=868374." />
compile Razor files that target MVC. For more information, see https://go.microsoft.com/fwlink/?linkid=868374." />
</Target> </Target>
<Target Name="_CheckForIncorrectComponentsConfiguration" <Target Name="_CheckForIncorrectComponentsConfiguration"
@ -814,8 +813,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<Warning <Warning
Code="RAZORSDK1005" Code="RAZORSDK1005"
Text="One or more Razor component files (.razor) were found, but the project is not configured to compile Razor Components. Configure the project by targeting RazorLangVersion 3.0 or newer. Text="One or more Razor component files (.razor) were found, but the project is not configured to compile Razor Components. Configure the project by targeting RazorLangVersion 3.0 or newer. For more information, see https://go.microsoft.com/fwlink/?linkid=868374." />
For more information, see https://go.microsoft.com/fwlink/?linkid=868374." />
</Target> </Target>
<Target Name="_ResolveRazorTargetPath"> <Target Name="_ResolveRazorTargetPath">