asp.net - VS 2012 Publish: Can't find the valid AspnetMergePath -


i installed update 2 visual studio 2012, introduces new publish dialog. i'm trying make used (precompile website before publishing), , i'm running error

"can't find valid aspnetmergepath" 

which thrown file microsoft.web.publishing.aspnetcompilemerge.targets. i've confirmed file aspnet_merge.exe exists in multiple places on computer, but

$(getaspnetmergepath)  

is evaluating empty string reason. must missing configuration setting, i've never messed before, i'm confused why start suddenly.

can offer advice on how resolve this? i've done standard google searching on error , nothing has led me right solution.

i hit same problem. searched through microsoft related sites, found lot of complaints , no intention microsoft fix it.

here how worked around @ system. edit microsoft.web.publishing.aspnetconfigurationmerge.targets file , add following line. please make sure microsoft sdk path same on pc, if not change it:

<targetframeworksdktoolsdirectory>c:\program files (x86)\microsoft sdks\windows\v7.0a\bin\</targetframeworksdktoolsdirectory> 

here how should like:

  <target   name="getaspnetmergepath"   dependsontargets="$(getaspnetmergepathdependson)"   condition ="'$(getaspnetmergepath)' != 'false'"> <propertygroup>   <targetframeworksdktoolsdirectory>c:\program files (x86)\microsoft sdks\windows\v7.0a\bin\</targetframeworksdktoolsdirectory>   <aspnetmergename>aspnet_merge.exe</aspnetmergename>   <aspnetmergepath condition="exists('$(targetframeworksdktoolsdirectory)$(aspnetmergename)')">$(targetframeworksdktoolsdirectory)</aspnetmergepath> </propertygroup> <error condition="'$(aspnetmergepath)' == '' or !exists($(aspnetmergepath))"        text="can't find valid aspnetmergepath" /> 


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -