Merge during WebApp publishing from Visual Studio 2017 15.2 is still using asp_net.merge.exe in version 4.6.1 (as per publishing output log), not corresponding to .Net Framework version 4.7 installed. Framework 4.7 version is set as a target framework for the project.
Both merge tools are installed:
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\aspnet_merge.exe
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\aspnet_merge.exe
How to configure Visual Studio to start using 4.7 version of aspnet_merge.exe?