我正试图将一个引用硬盘上本地程序集的项目部署到azure。该项目在本地构建和运行,然而,当我尝试使用下面的命令将其部署到azure时
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中,但我不知道如何使其工作,因此,如果有任何帮助,我们将不胜感激。
如注释所示,some.dll
没有被推送到实时服务器,因为它没有被git跟踪,witch导致了CS0234,所以你只需要添加它:
git add path/to/some.dll
此外,因为DLL是二进制的,我也建议你阅读这里的答案:git适合二进制文件吗?
git-lfs
扩展可能很有趣:https://git-lfs.github.com/