Merge pull request dotnet/aspnetcore-tooling#974 from nguerrera/link-views
Pass views assembly to linker\n\nCommit migrated from ddb72ebdb1
This commit is contained in:
commit
ad0cf9c6e7
|
|
@ -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