vs2012发布网站报错:“Can't find the valid AspnetMergePath”

解决方法:

1、用记事本打开

C:\Program Files
 (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge.targets

2、找到以下xml节点修改成:



  C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\
  aspnet_merge.exe
  $(TargetFrameworkSDKToolsDirectory)


 

3,重点:

以上xml中

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

如果是vs2015,将文件:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge.targets

的节点换成

C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bin\

欢迎指正

你可能感兴趣的:(vs2012发布网站报错:“Can't find the valid AspnetMergePath”)