【问题标题】:Visual Studio .suo and .dll?Visual Studio .suo 和 .dll?
【发布时间】:2022-01-03 18:08:12
【问题描述】:

我正在使用 EF Core。在 Visual Studio 上提交时,会不断出现带有 .dll 和 .suo 扩展名的文件。我在 gitignore 中指定它应该忽略它们。我想我错过了什么。

Gitignore;

enter image description here

enter image description here

enter image description here

enter image description here

提交出来;

enter image description here

【问题讨论】:

  • Eeeehm,您的问题到底是什么?这与编程有什么关系?这只是忽略来自 git 的文件。或者您想知道创建这些文件的原因和位置?
  • 应排除整个.vs 文件夹。您可能还遇到的问题是,如果您只是在之后才将这些文件添加到 gitignore 文件中,那么它们已经包含在您的存储库中,您需要先将它们删除。
  • 能否请您edit 将您的.gitignore 文件、代码、错误消息和其他文本内容作为文本 而不是屏幕截图?有必要不要为此使用图像,请参阅Why not upload images of code/errors when asking a question?Discourage screenshots of code and/or errors 了解原因。文本内容仅在外部链接(包括图像)中可用的问题可以因需要调试详细信息而关闭。请参阅How to Ask 了解原因。

标签: c# visual-studio dll entity-framework-core


【解决方案1】:

看起来您已经将该文件夹推送到 git 存储库。您应该使用git rm -r --cached .vs 将其删除。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多