Changes per PR comments

This commit is contained in:
Pranav K 2018-01-26 10:25:58 -08:00
parent bd72b1bac9
commit 42c3102cd4
9 changed files with 107 additions and 19 deletions

View File

@ -9,7 +9,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
Copyright (c) .NET Foundation. All rights reserved. Copyright (c) .NET Foundation. All rights reserved.
*********************************************************************************************** ***********************************************************************************************
--> -->
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project>
<Import Project="$(MSBuildThisFileDirectory)..\build\netstandard2.0\Razor.Sdk.CurrentVersion.props" /> <Import Project="$(MSBuildThisFileDirectory)..\build\netstandard2.0\Razor.Sdk.CurrentVersion.props" />

View File

@ -9,12 +9,13 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
Copyright (c) .NET Foundation. All rights reserved. Copyright (c) .NET Foundation. All rights reserved.
*********************************************************************************************** ***********************************************************************************************
--> -->
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project>
<Import Project="$(_RazorSdkCurrentVersionPath)" <PropertyGroup Condition="'$(RazorSdkTargetsPath)' == ''">
Condition="'$(IsCrossTargetingBuild)' != 'true' AND '$(_RazorSdkCurrentVersionPath)' != '' AND Exists('$(_RazorSdkCurrentVersionPath)')" /> <RazorSdkTargetsPath Condition="'$(IsCrossTargetingBuild)' == 'true'">$(MSBuildThisFileDirectory)..\buildMultiTargeting\Razor.Sdk.CurrentVersion.MultiTargeting.targets</RazorSdkTargetsPath>
<RazorSdkTargetsPath Condition="'$(IsCrossTargetingBuild)' != 'true'">$(MSBuildThisFileDirectory)..\build\netstandard2.0\Razor.Sdk.CurrentVersion.targets</RazorSdkTargetsPath>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)..\build\netstandard2.0\Razor.Sdk.CurrentVersion.targets" <Import Project="$(RazorSdkTargetsPath)" />
Condition="'$(IsCrossTargetingBuild)' != 'true' AND '$(MicrosoftAspNetCoreRazorSdkTargetsImported)' != 'true'" />
</Project> </Project>

View File

@ -1,3 +1,15 @@
<!--
***********************************************************************************************
Microsoft.AspNetCore.Razor.Design.Compilation.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project> <Project>
<!-- <!--
What follows in this file is based on: What follows in this file is based on:

View File

@ -1,8 +1,19 @@
<!--
***********************************************************************************************
Microsoft.AspNetCore.Razor.Sdk.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project> <Project>
<Import Project="Sdk.CurrentVersion.props" /> <Import Project="Razor.Sdk.CurrentVersion.props" />
<PropertyGroup> <PropertyGroup>
<!-- Redirect the SDK to use the targets from the current package --> <!-- Redirect the SDK to use the targets from the current package -->
<_RazorSdkCurrentVersionPath>$(MSBuildFileDirectory)Sdk.CurrentVersion.targets</_RazorSdkCurrentVersionPath> <RazorSdkTargetsPath>$(MSBuildFileDirectory)Sdk.CurrentVersion.targets</RazorSdkTargetsPath>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@ -1,3 +1,14 @@
<!--
***********************************************************************************************
Microsoft.AspNetCore.Razor.Sdk.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project> <Project>
<Import Project="Sdk.CurrentVersion.targets" /> <Import Project="Razor.Sdk.CurrentVersion.targets" />
</Project> </Project>

View File

@ -1,3 +1,14 @@
<!--
***********************************************************************************************
Razor.Sdk.CurrentVersion.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project> <Project>
<!-- <!--
Properties and tasks supporting Razor MSBuild integration Properties and tasks supporting Razor MSBuild integration
@ -29,9 +40,4 @@
<CopyRefAssembliesToPublishDirectory Condition="'$(CopyRefAssembliesToPublishDirectory)'==''">false</CopyRefAssembliesToPublishDirectory> <CopyRefAssembliesToPublishDirectory Condition="'$(CopyRefAssembliesToPublishDirectory)'==''">false</CopyRefAssembliesToPublishDirectory>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<!-- This property is used by the SDK package to redirect the location of Sdk.CurrentVersion.targets -->
<_RazorSdkCurrentVersionPath>$(MSBuildThisFileDirectory)Sdk.CurrentVersions.target</_RazorSdkCurrentVersionPath>
</PropertyGroup>
</Project> </Project>

View File

@ -1,4 +1,15 @@
<Project> <!--
***********************************************************************************************
Razor.Sdk.CurrentVersion.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project>
<!-- <!--
Targets supporting Razor MSBuild integration. Contain support for generating C# code using Razor Targets supporting Razor MSBuild integration. Contain support for generating C# code using Razor
and including the generated code in the project lifecycle, including compiling, publishing and producing and including the generated code in the project lifecycle, including compiling, publishing and producing
@ -10,10 +21,6 @@
--> -->
<Import Project="$(CustomBeforeRazorSdkTargets)" Condition="'$(CustomBeforeRazorSdkTargets)' != '' and Exists('$(CustomBeforeRazorSdkTargets)')"/> <Import Project="$(CustomBeforeRazorSdkTargets)" Condition="'$(CustomBeforeRazorSdkTargets)' != '' and Exists('$(CustomBeforeRazorSdkTargets)')"/>
<PropertyGroup>
<MicrosoftAspNetCoreRazorSdkTargetsImported>true</MicrosoftAspNetCoreRazorSdkTargetsImported>
</PropertyGroup>
<!-- <!--
Razor defines two primary targets: Razor defines two primary targets:
'RazorGenerate' - which updates generated code 'RazorGenerate' - which updates generated code

View File

@ -0,0 +1,14 @@
<!--
***********************************************************************************************
Microsoft.AspNetCore.Razor.Sdk.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project>
<Import Project="Razor.Sdk.CurrentVersion.MultiTargeting.targets" />
</Project>

View File

@ -0,0 +1,26 @@
<!--
***********************************************************************************************
Razor.Sdk.CurrentVersion.MultiTargeting.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (c) .NET Foundation. All rights reserved.
***********************************************************************************************
-->
<Project>
<PropertyGroup>
<RazorSdkTargetsImported>true</RazorSdkTargetsImported>
</PropertyGroup>
<Target Name="RazorCompile">
<Error Text="The 'RazorCompile' target is not supported without specifying a target framework. The current project targets multiple frameworks, please specify a framework to execute this target." />
</Target>
<Target Name="RazorGenerate">
<Error Text="The 'RazorGenerate' target is not supported without specifying a target framework. The current project targets multiple frameworks, please specify a framework to execute this target." />
</Target>
</Project>