When vs2015 publishing project, reported "Can not find the valid AspnetMergePath" error, how to solve Can not find the valid AspnetMergePath "problem

The project is run, but when released, they reported " of Can not the Find! Valid AspnetMergePath at The" problem

1, issue screenshot

 

2, the solution

1) Locate the file path error caused by the

Such as: I am here is: C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ Web \ Transform \ Microsoft.Web.Publishing.AspNetCompileMerge.targets

2) Open the file changed, search TargetFrameworkSDKToolsDirectory

Open the file, press ctrl + F, to open the search, enter TargetFrameworkSDKToolsDirectory

 

 3) In PropertyGroup tag added

<TargetFrameworkSDKToolsDirectory>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\</TargetFrameworkSDKToolsDirectory>

Results are as follows:

 4) Save the file

 3, republish project

 

 

Reference website:

https://cloud.tencent.com/developer/ask/89517

 

Guess you like

Origin www.cnblogs.com/xielong/p/12518899.html