本文介绍了错误MSB4057:目标“包”在项目中不存在。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是一个真正的问题,因为这是对许多人偶尔有这个问题的另一个回应。我只是想我会在这个问题上发布我的解决方案。

------------------------------------------ ----------------------------------

我一直在努力解决这个问题发现了许多关于如何修复的文章。他们都没有帮助我。所以,我后退了一步。在我们的商店,我们使用分支。我遇到的问题是,一个分支中的同一个项目工作(当MSDeploy被授予时),另一个没有。当我比较项目时,我发现抛出异常的项目文件中缺少这一条目(见下文)。当我将它添加到项目中时(抛出异常),MSDeploy工作,当我删除它时,它再次失败。希望这也有帮助



< project>

< propertygroup>

< vstoolspath condition = '$(VSToolsPath)'==''> $(MSBuildExtensionsPath32)\ Microsoft &\\VisualStudio \ v $(VisualStudioVersion)


This is not really a question as it is another response to so many having this issue on occasion. I just thought I would post what my resolution was to this issue.
----------------------------------------------------------------------------
I had been struggling with this issue and found many articles on how to fix. None of them helped me. So, I took a step back. In our shop, we work with branching. The issue I was having was that the same project in one branch worked (when MSDeploy was exceuted), another did not. When I compared the projects, I found this one entry (see below) was missing in the project file that was throwing the exception. When I would add it in the project (that was throwing the exception), MSDeploy worked, when I removed it, it failed again. Hope this helps as well

<project>
<propertygroup>
<vstoolspath condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)

推荐答案




这篇关于错误MSB4057:目标“包”在项目中不存在。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 09:08