通过Bitbucket进行Azure部署

时间:2019-05-29 07:55:08

标签: c# asp.net azure continuous-integration

我在ASP.NET Web API上有一个项目,其中引用了许多库。当我们尝试通过部署中心对App Service进行常规CI / CD时。我们面临着问题。

我们需要删除.csproj才能使部署正常进行,否则我们将在服务器上遇到此错误

This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.

但是,我们需要团队中的各个成员使用csproj文件来共同为该特定项目工作。

在这种情况下,我们可以采用什么可能的解决方案?

谢谢!

1 个答案:

答案 0 :(得分:1)

问题::源控件将仅包含二进制文件的引用。应先还原软件包,然后才能触发构建。

修复::在触发构建之前,在CI / CD中添加一个步骤以还原项目中的NuGet软件包。引用所附图片。

enter image description here