我和一个朋友正在从事一个虚幻项目,我们正在使用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?
发布评论
评论(1)
这是一个永远存在的错误。我已经对此提交了许多错误报告,还有其他几个。他们拒绝做任何事情。
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