asp.net – VS 2012发布:找不到有效的AspnetMergePath
发布时间:2020-05-23 17:51:11 所属栏目:asp.Net 来源:互联网
导读:我刚刚为Visual Studio 2012安装了更新2,它引入了一个新的“发布”对话框。我试图让它做它以前做的(在发布前预先编译一个网站),我遇到了错误,它是 Cant find the valid AspnetMergePath 这是从文件Microsoft.Web.Publishing.AspNetCompileMerge.targets抛
|
我刚刚为Visual Studio 2012安装了更新2,它引入了一个新的“发布”对话框。我试图让它做它以前做的(在发布前预先编译一个网站),我遇到了错误,它是 "Can't find the valid AspnetMergePath" 这是从文件Microsoft.Web.Publishing.AspNetCompileMerge.targets抛出的。我确认文件aspnet_merge.exe存在于我的电脑上的多个地方,但是 $(GetAspNetMergePath) 由于某些原因正在评估为空字符串。我一定缺少一些配置设置,但是我从来没有搞过这些配置,所以我很困惑,为什么这会突然开始。 任何人都可以提供如何解决这个问题的建议?我在这个错误上完成了标准的Google搜索,没有任何事情使我得到正确的解决方案。 解决方法我遇到同样的问题。通过所有微软相关网站搜索,发现很多投诉,没有意图从微软修复它。在这里我如何在我的系统上工作。编辑Microsoft.Web.Publishing.AspNetConfigurationMerge.targets文件并添加以下行。请确保您的PC上的Microsoft SDK路径是一样的,如果没有,然后更改它: <TargetFrameworkSDKToolsDirectory>C:Program Files (x86)Microsoft SDKsWindowsv7.0ABin</TargetFrameworkSDKToolsDirectory> 这里应该如何: <Target
Name="GetAspNetMergePath"
DependsOnTargets="$(GetAspNetMergePathDependsOn)"
Condition ="'$(GetAspNetMergePath)' != 'false'">
<PropertyGroup>
<TargetFrameworkSDKToolsDirectory>C:Program Files (x86)Microsoft SDKsWindowsv7.0ABin</TargetFrameworkSDKToolsDirectory>
<AspnetMergeName>aspnet_merge.exe</AspnetMergeName>
<AspnetMergePath Condition="Exists('$(TargetFrameworkSDKToolsDirectory)$(AspnetMergeName)')">$(TargetFrameworkSDKToolsDirectory)</AspnetMergePath>
</PropertyGroup>
<Error Condition="'$(AspnetMergePath)' == '' Or !Exists($(AspnetMergePath))"
Text="Can't find the valid AspnetMergePath" /> (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-mvc-3 – ASP.NET MVC 3:如何在控制器方法中获取用
- asp.net-mvc – ASP.NET MVC 4路由 – controller / id与co
- 什么是使用aspnet_compiler.exe预编译ASP.NET项目的优势?
- asp.net-web-api – 无法在Mono / xsp4中加载类型’System.
- 如何检测ASP.NET应用程序中的SqlServer连接泄漏?
- asp.net – 如果缓存破坏程序与内容不匹配,防止捆绑包响应
- 为什么每个人都在ASP.NET Webforms中依赖注入是困难的,当Pa
- asp.net-mvc – 使用MVC将数据导入局部视图或布局
- asp.net-mvc-4 – 在MVC4中捕获404错误
- asp.net-mvc – ASP.NET MVC – RequireJS最佳的多页面应用
推荐文章
站长推荐
- asp.net-mvc – ASP.NET MVC / EF4 / POCO /存储
- asp.net – 具有完全内存错误的WCF服务(内存门检
- asp.net-mvc – DDay iCal – 添加一个与会者
- asp.net-mvc – 如何使用actionresult返回视图和
- asp.net-mvc-3 – 是否有自动方式在MVC中查找未使
- asp.net-mvc – Elmah基本设置问题/问题
- asp.net-mvc-3 – mvc3剃刀条件包装器div
- asp.net-mvc – 类型“表达式”在未引用的程序集
- asp.net-mvc – 在ASP.NET MVC中使用控制器和用户
- ASP.Net WebAPI中的自定义路由处理程序
热点阅读
