c# - 被认为是“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 中,但我不知道如何完成这项工作,因此将不胜感激。
解决方案
如评论中所见,some.dll
由于 git 未跟踪,因此未将其推送到实时服务器,女巫导致 CS0234,因此您只需添加它:
git add path/to/some.dll
此外,由于 DLL 是二进制文件,我还建议您在此处阅读答案:git 对二进制文件好吗?
git-lfs
扩展可能很有趣:https ://git-lfs.github.com/
推荐阅读
- azure - Azure Policy 验证是否未选择 TLS 字段
- sql - 我可以使用delphi编辑作为名称在sql中创建表吗
- css - CSS:如何修复这样的符号的多余空间(当 line-height 不削减它时)
- types - 为什么 IntoIter 不拥有这些值?
- ios - Swift 等效于每次按下“x”按钮以执行操作
- r - 为什么函数在R中使用相同的输入向量给出不同的值?
- yarn-workspaces - 具有对等依赖关系的 Yarn V2 (Berry) 工作区
- c# - 替换 CSV 文件中的行
- openid-connect - OpenIddict 的临时关键问题
- angular - 我是后端开发的新手,并尝试使用 Nest 和 typeorm 创建一些 api,但无法在 http://localhost:3000/users/ 中发布