【问题标题】:What to do with DLLs when deploying to Azure from Git Repository从 Git 存储库部署到 Azure 时如何处理 DLL
【发布时间】:2013-04-16 21:15:30
【问题描述】:

我正在尝试使用 git repo 将 C# 应用程序部署到天蓝色,但它失败了:

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

目前,所有 DLL 都从存储库中排除。我不想包含所有这些 DLL,因为它会使我的仓库变得巨大。有没有办法解决这个问题?

【问题讨论】:

  • 你在哪里部署? Azure 网站还是 Azure 云服务?

标签: c# git deployment azure


【解决方案1】:

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

然后您可以使用 .gitignore 排除所有二进制文件。示例见this repo

【讨论】:

  • 呃!不久前想通了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-11-26
  • 1970-01-01
  • 1970-01-01
  • 2022-01-07
相关资源
最近更新 更多