首页 > 解决方案 > 被认为是“some.dll”,但它不存在

问题描述

我正在尝试将一个引用我硬盘驱动器上的本地程序集的项目部署到天蓝色。该项目在本地构建和运行,但是,当我尝试使用以下命令将其部署到天蓝色时

git push int-live master:master 

它返回以下错误:

Error - Changes committed to the remote repository but deployment to website failed.

going through the logs 
error CS0234: The type or namespace name 'some' does not exist in the namespace 'comp.utils'

Considered "some.dll", but it didn't exist.

这让我相信它没有将我的程序集附加到 git repo 中,但我不知道如何完成这项工作,因此将不胜感激。

标签: c#gitazure.net-core

解决方案


如评论中所见,some.dll由于 git 未跟踪,因此未将其推送到实时服务器,女巫导致 CS0234,因此您只需添加它:

git add path/to/some.dll

此外,由于 DLL 是二进制文件,我还建议您在此处阅读答案:git 对二进制文件好吗?

git-lfs扩展可能很有趣:https ://git-lfs.github.com/


推荐阅读