C# 考虑到;“some.dll”;,但它没有';不存在
我正在尝试部署一个将我硬盘上的本地程序集引用到azure的项目。但是,当我尝试使用下面的命令将项目部署到azure时,该项目在本地构建和运行C# 考虑到;“some.dll”;,但它没有';不存在,c#,git,azure,.net-core,C#,Git,Azure,.net Core,我正在尝试部署一个将我硬盘上的本地程序集引用到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
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
没有被推送到live server,因为git没有跟踪,这是导致CS0234的原因,因此您只需添加它:
git add path/to/some.dll
此外,由于DLL是二进制文件,我还建议您阅读此处的答案:
而且
gitlfs
扩展可能很有趣:您的DLL“some.DLL”在git历史记录中?您是否尝试添加:git add path/to/some.dll
?@Leo谢谢您的帮助,我没有意识到dll必须存在于repo中。事后看来,这是显而易见的。