解决方案资源管理器不显示文件,不是因为显示/所有文件按钮

发布于 2024-08-18 18:26:54 字数 165 浏览 4 评论 0原文

我已将解决方案签入 TFS。查看源代码管理资源管理器,我的解决方案中有一个 .cs 文件。但在解决方案资源管理器中查看它丢失了。

构建项目时,它会考虑该文件,并将其代码包含在构建中。

我的一位同事已成功从 TFS 中提取代码并构建它,一切都按预期显示。

有什么想法吗?

I have a solution checked into TFS. Looking in the source control explorer I have a .cs file in the solution. But looking in the solution explorer it's missing.

When the project is built it takes the file into consideration and it's code is included in the build.

A collegue of mine has successfully pulled the code from TFS and built it and everything appears as expected.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

羁拥 2024-08-25 18:26:54

有同样的问题。我所做的就是保持解决方案/项目的开放。转到 Windows 资源管理器,删除该项目的所有文件,但未显示文件。然后从 TFS 获取该项目的所有文件。然后系统提示重新加载项目,瞧 - 文件出现了。但不知道为什么会发生这种情况。

Had the same problem. What I did was, keeping the solution/projects open. Went to windows explorer, deleted all the files of that project which was not showing the files. Then from TFS, got all the files for that project. Then was prompted to reload the project, and voila - the files showed up. Not sure why this happened though.

水晶透心 2024-08-25 18:26:54

我猜测磁盘中缺少 .cs 文件,或者您有 .csproj 文件的陈旧副本,或者类似的内容。使用文件夹差异工具查看发生了什么。 'tffolderdiff',或右键单击 ->比较源代码管理资源管理器中的文件夹。

I'm guessing the .cs file is missing from disk, or you have a stale copy of the .csproj file, or something along those lines. Use the Folder Diff tool to see what's going on. 'tf folderdiff', or rightclick -> Compare on a folder in Source Control Explorer.

挥剑断情 2024-08-25 18:26:54

只有完全重新安装才能解决该问题。

Only a full reinstall fixed the issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文