Visual studio 未在项目中添加使用Visual Studio、Bitbucket和SourceTree的新文件

Visual studio 未在项目中添加使用Visual Studio、Bitbucket和SourceTree的新文件,visual-studio,version-control,bitbucket,sourcetree,Visual Studio,Version Control,Bitbucket,Sourcetree,我在集成SourceTree、Bitbucket和Visual Studio时遇到了一个恼人的问题。当我在项目中创建文件夹、类或引用并推送到Bitbucket时,推送时,它们不会自动添加到其他项目中。它们位于文件夹中,但不会添加到项目中。我已经在Stack Overflow中查找答案,但没有人帮助我。如图所示,“Teste”文件夹不包括在我的Visual Studio项目中。如何解决?谢谢 这可能是因为文件未包含在.csproj中,这可能是因为git提交的顺序,您可以更改提交的顺序,或者在提交

我在集成SourceTree、Bitbucket和Visual Studio时遇到了一个恼人的问题。当我在项目中创建文件夹、类或引用并推送到Bitbucket时,推送时,它们不会自动添加到其他项目中。它们位于文件夹中,但不会添加到项目中。我已经在Stack Overflow中查找答案,但没有人帮助我。如图所示,“Teste”文件夹不包括在我的Visual Studio项目中。如何解决?谢谢


这可能是因为文件未包含在
.csproj
中,这可能是因为git提交的顺序,您可以更改提交的顺序,或者在提交之前重建项目,这将自动在
.csproj
中添加类

另外,您还可以注意
.gittributes
文件,以使用稍微不同的合并驱动程序

*.csproj -text merge=union
*.sln -text merge=union`

如果您想了解更多信息,可以单击。

这可能是因为文件未包含在
.csproj
中,这可能是因为git提交的顺序,您可以更改提交的顺序,或者在提交之前重建项目,这将自动在
.csproj

另外,您还可以注意
.gittributes
文件,以使用稍微不同的合并驱动程序

*.csproj -text merge=union
*.sln -text merge=union`
如果你想了解更多关于你可以点击