我正在尝试使用 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/