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

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

问题描述

我知道已经有这个问题其他的引用。但我没有从VS的一个版本升级到另一个版本。我目前使用VS 2013年该项目构建罚款,甚至在过去的成功部署。这是一个全新的应用程序。所以它不是从其他项目继承的东西。我可以在哪里开始寻找?我可以张贴在这里可能有助于你们,希望能够帮助我吗?这是一个Web API 2个网站。我使用内VS2013发布命令。

I know there have been other references to this issue. But I didn't upgrade from one version of VS to another. I am currently using VS 2013. The project builds fine, and has even deployed successfully in the past. This is a brand new app. So it wasn't something inherited from another project. Where can I start looking? What can I post here that may be helpful for you guys to hopefully help me? It is a web api 2 site. I am using the publish command within VS2013.

推荐答案

下面添加到我的.csproj文件,似乎解决了同样的错误,我行:

Adding the lines below to my .csproj file seems to solve the same error for me:

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

由于试图解决问题的一部分,我也安装了的 MSBuild.Microsoft.VisualStudio.Web.targets 的包的NuGet。但我仍然不知道它为了解决这一问题是必要的。

As part of trying to resolve the issue, I've also installed the MSBuild.Microsoft.VisualStudio.Web.targets Nuget Package. But I'm still not sure it was necessary in order to resolve the issue.

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

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