Pass views assembly to linker

1. Re-schedule target to run before linker
2. Add additional linker input item
\n\nCommit migrated from 88b5f29a63
This commit is contained in:
Nick Guerrera 2019-08-14 18:44:17 -07:00
parent 778246c674
commit e18cc9a776
2 changed files with 6 additions and 4 deletions

View File

@ -487,12 +487,12 @@ Copyright (c) .NET Foundation. All rights reserved.
-->
<!--
Called after ComputeRefAssembliesToPublish but before CopyFilesToPublishDirectory - this target is called when
Called after ComputeResolvedFilesToPublishList but before CopyFilesToPublishDirectory - this target is called when
publishing the project to get a list of files to the output directory.
-->
<Target
Name="_StaticWebAssetsComputeFilesToPublish"
AfterTargets="ComputeRefAssembliesToPublish"
AfterTargets="ComputeResolvedFilesToPublishList"
DependsOnTargets="ResolveStaticWebAssetsInputs">
<ItemGroup>

View File

@ -779,18 +779,20 @@ Copyright (c) .NET Foundation. All rights reserved.
</Target>
<!--
Called after ComputeFilesToPublish and ComputeRefAssembliesToPublish but before CopyFilesToPublishDirectory - this target is called when
Called after ComputeResolvedFilesToPublishList but before CopyFilesToPublishDirectory - this target is called when
publishing the project to get a list of files to the output directory.
-->
<Target
Name="_RazorComputeFilesToPublish"
AfterTargets="ComputeRefAssembliesToPublish"
AfterTargets="ComputeResolvedFilesToPublishList"
Condition="'$(ResolvedRazorCompileToolset)'=='RazorSdk' and '$(RazorCompileOnPublish)'=='true' and '@(RazorGenerate)'!=''">
<!-- If we generated an assembly/pdb then include those -->
<ItemGroup>
<ResolvedFileToPublish Include="@(RazorIntermediateAssembly)" Condition="'$(CopyBuildOutputToPublishDirectory)'=='true'">
<RelativePath>@(RazorIntermediateAssembly->'%(Filename)%(Extension)')</RelativePath>
<!-- Pass assembly to linker and crossgen -->
<PostprocessAssembly>true</PostprocessAssembly>
</ResolvedFileToPublish>
<ResolvedFileToPublish Include="@(_RazorDebugSymbolsIntermediatePath)" Condition="'$(CopyOutputSymbolsToPublishDirectory)'=='true'">
<RelativePath>@(_RazorDebugSymbolsIntermediatePath->'%(Filename)%(Extension)')</RelativePath>