c# - 从 Git 存储库部署到 Azure 时如何处理 DLL

标签 c# git deployment azure

我正在尝试使用 git 存储库将 C# 应用程序部署到 azure,但它失败了:

The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

目前,所有 DLL 均已从存储库中排除。我不想包含所有这些 DLL,因为它会使我的存储库变得巨大。有办法避免这样做吗?

最佳答案

您所需要做的就是在您的解决方案上启用 NuGet 包还原(右键单击 VS 中的解决方案以找到该选项)。

然后您可以使用 .gitignore 排除所有二进制文件。请参阅this repo举个例子。

关于c# - 从 Git 存储库部署到 Azure 时如何处理 DLL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16047246/

相关文章:

asp.net - 如何使用 Visual Studio 2017 将我的 ASP.NET Web API 2 项目发布到 IIS 8.5?

php - 如何解决 Symfony2 部署问题?

c# - 需要帮助确定要编写的单元测试

c# - 单选框可点击图像

git - 为什么有人要在 Git 中标记?

swift - 完美模板

c# - 什么是NullReferenceException,如何解决?

c# - 如何在 C# 中将 BigInteger 转换为 pow Double?

git - Git 是分布式的还是去中心化的?

deployment - 如何在 Ubuntu 上部署 Amber 应用程序?