在分支变化上重新加载Visual Studio解决方案

发布于 2025-01-23 19:53:30 字数 431 浏览 0 评论 0 原文

我和一个朋友正在从事一个虚幻项目,我们正在使用github进行源控制(使用gitkraken)。

我创建了一些分支机构,以保持孤立的工作。只是为了测试合并等。我在编程分支机构中创建了一个类,并交换了分支,只是为了查看文件是否没有以某种方式转到所有分支(只是想确保我正确设置分支)。幸运的是,这些文件不会跨分支。

但是,我确实在Visual Studio中注意到,类文件仍出现在解决方案资源管理器中,但它们不在我的计算机上的项目目录中。我四处搜索,大多数人都说“重新加载解决方案”,但是我认为没有选择重新加载解决方案。我尝试重新构建,编译以查看文件是否在编译后进行,尝试修补一些选项,包括提交中的.sln文件(从.gitignore中删除.sln),并且似乎没有任何作用。我正在尝试弄清楚如何阻止Visual Studio在解决方案资源管理器中显示文件中的文件。只是为了避免切换分支时的混乱。

有什么想法吗?

Me and a friend are working on a Unreal project and we're using GitHub for our source control (with GitKraken).

I have created a few branches to keep work isolated. Just to test merging, etc. I created a class in my Programming branch and swapped branches just to see if the files didn't somehow go to all branches (just wanted to make sure I set up branches correctly). Luckily, the files don't go across branches.

However, I did notice in Visual Studio, the class files are still appearing in the Solution Explorer but they are not in the projects directory on my computer. I have Googled around and most people are saying about 'Reloading the solution', but I see no option to Reload the solution. I've tried re-building, compiling to see if the files go after compiling, tried tinkering with some options, including the .sln file in the commits (removed .sln from the .gitignore) and nothing seems to be working. I'm trying to work out how to stop visual studio from showing files in the solution explorer if they're not physically in the project. Just to avoid confusion when switching branches.

Any ideas?

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

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

发布评论

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

评论(1

别在捏我脸啦 2025-01-30 19:53:30

这是一个永远存在的错误。我已经对此提交了许多错误报告,还有其他几个。他们拒绝做任何事情。

This is a bug that has been around forever. I have filed many bug reports on this and so have several others. They refuse to do anything.

https://developercommunity.visualstudio.com/t/Visual-Studio-randomly-modifiesreverts-/10782463

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