目标" MSDeployTestConnection"该项目不存在 [英] The target "MSDeployTestConnection" does not exist in the project

查看:206
本文介绍了目标" MSDeployTestConnection"该项目不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想发表我的Web服务,而我设置的发布方法Web部署。
中的服务URL为localhost和网站/应用程序设置为默认的Web站点。当我尝试验证的连接,我得到一个错误,指出:
MSDeployTestConnection并不在项目中存在,目标

I am trying to publish my Web Service, and I set the Publish method to Web Deploy. The Service URL is localhost and the Site/Application is set to Default Web site. When I try to validate the connection, I get an error stating that : "the target "MSDeployTestConnection" does not exist in the project".

我有发现在网络上这个问题没有帮助。有谁知道在这里做什么?

I have found no help on this problem on the net. Does anyone know what to do here?

推荐答案

我有同样的问题在我的项目之一。幸运的是我有另外的项目,在工作,所以我比较的.csproj文件

I had the same problem in one of my projects. Fortunately I had another project that was working, so I compared the .csproj files.

一的问题是缺少此项:

<PropertyGroup>
  <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
  <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>



所以Microsoft.WebApplication.targets进口未运行,由于它的条件

so the import of the Microsoft.WebApplication.targets was not running due to it's condition

<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />



我只是简单地添加属性组和一切工作正常。

I simply added the property group and everything worked fine.

(请注意,我在vs2012我工作但该项目最初是在VS2010创建的。请检查您的VisualStudio版本vstoolpath路径)

(note that i'm working in vs2012 but the project was originally created in vs2010. Check your visualstudio version and vstoolpath path)

好运气

这篇关于目标&QUOT; MSDeployTestConnection&QUOT;该项目不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆