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:
parent
778246c674
commit
e18cc9a776
|
|
@ -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.
|
publishing the project to get a list of files to the output directory.
|
||||||
-->
|
-->
|
||||||
<Target
|
<Target
|
||||||
Name="_StaticWebAssetsComputeFilesToPublish"
|
Name="_StaticWebAssetsComputeFilesToPublish"
|
||||||
AfterTargets="ComputeRefAssembliesToPublish"
|
AfterTargets="ComputeResolvedFilesToPublishList"
|
||||||
DependsOnTargets="ResolveStaticWebAssetsInputs">
|
DependsOnTargets="ResolveStaticWebAssetsInputs">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -779,18 +779,20 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
</Target>
|
</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.
|
publishing the project to get a list of files to the output directory.
|
||||||
-->
|
-->
|
||||||
<Target
|
<Target
|
||||||
Name="_RazorComputeFilesToPublish"
|
Name="_RazorComputeFilesToPublish"
|
||||||
AfterTargets="ComputeRefAssembliesToPublish"
|
AfterTargets="ComputeResolvedFilesToPublishList"
|
||||||
Condition="'$(ResolvedRazorCompileToolset)'=='RazorSdk' and '$(RazorCompileOnPublish)'=='true' and '@(RazorGenerate)'!=''">
|
Condition="'$(ResolvedRazorCompileToolset)'=='RazorSdk' and '$(RazorCompileOnPublish)'=='true' and '@(RazorGenerate)'!=''">
|
||||||
|
|
||||||
<!-- If we generated an assembly/pdb then include those -->
|
<!-- If we generated an assembly/pdb then include those -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResolvedFileToPublish Include="@(RazorIntermediateAssembly)" Condition="'$(CopyBuildOutputToPublishDirectory)'=='true'">
|
<ResolvedFileToPublish Include="@(RazorIntermediateAssembly)" Condition="'$(CopyBuildOutputToPublishDirectory)'=='true'">
|
||||||
<RelativePath>@(RazorIntermediateAssembly->'%(Filename)%(Extension)')</RelativePath>
|
<RelativePath>@(RazorIntermediateAssembly->'%(Filename)%(Extension)')</RelativePath>
|
||||||
|
<!-- Pass assembly to linker and crossgen -->
|
||||||
|
<PostprocessAssembly>true</PostprocessAssembly>
|
||||||
</ResolvedFileToPublish>
|
</ResolvedFileToPublish>
|
||||||
<ResolvedFileToPublish Include="@(_RazorDebugSymbolsIntermediatePath)" Condition="'$(CopyOutputSymbolsToPublishDirectory)'=='true'">
|
<ResolvedFileToPublish Include="@(_RazorDebugSymbolsIntermediatePath)" Condition="'$(CopyOutputSymbolsToPublishDirectory)'=='true'">
|
||||||
<RelativePath>@(_RazorDebugSymbolsIntermediatePath->'%(Filename)%(Extension)')</RelativePath>
|
<RelativePath>@(_RazorDebugSymbolsIntermediatePath->'%(Filename)%(Extension)')</RelativePath>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue