简体   繁体   English

使用GIT在一个解决方案中的VisualStudio 2012中的多个项目

[英]Multiple Projects in VisualStudio 2012 in one Solution using GIT

I am looking for a Solution having multiple Projects in one Solution, using one GIT repository per Project. 我正在寻找一个解决方案,在一个解决方案中有多个项目,每个项目使用一个GIT存储库。

I want to be able to have multiple projects in one solution but each project has it's own GIT repo. 我希望能够在一个解决方案中拥有多个项目,但每个项目都有自己的GIT仓库。

Lets say I got these project structure : 让我们说我得到了这些项目结构:

Solution Project 
- Some Client
- Some Other Project
- Some Lib Project that is used by all projects in this solution
- Some ASP Website

Any Thoughts how I can bring it to work ? 有什么想法我怎么能把它带到工作? Is Visual Studio 2013 able to handle this ? Visual Studio 2013能够处理这个吗?

At the moment the Visual Studio integration only really handles a single repo containing the entire solution (and projects). 目前,Visual Studio集成仅真正处理包含整个解决方案(和项目)的单个存储库。 Doesn't really work well when each project is in it's own repository or if you are using sub-modules etc. 当每个项目都在自己的存储库中或者您正在使用子模块等时,效果不是很好。

Probably worth heading over to UserVoice and adding your support for this, however I do know that it's something the team are looking at solving at some point 可能值得前往UserVoice并添加您对此的支持,但我知道这是团队正在寻求解决的问题

In the meantime, you are probably going to need to fall back to the command line I'm afraid. 与此同时,你可能需要回到我担心的命令行。

It does not seem to be possible at this time (even in Visual Studio 2013). 目前似乎不可能(即使在Visual Studio 2013中)。 Visual Studio handles one GIT repository per solution (including projects). Visual Studio为每个解决方案(包括项目)处理一个GIT存储库。

In order to be efficient, the best alternative I found is to use an application like SourceTree and include all your projects in it. 为了提高效率,我发现最好的替代方法是使用像SourceTree这样的应用程序,并在其中包含所有项目。

You can Download SourceTree . 您可以下载SourceTree

I found that using a software like SourceTree (or another) makes it simple to see which files were modified and what specific lines where edited. 我发现使用像SourceTree(或其他)这样的软件可以很容易地看到修改了哪些文件以及编辑了哪些特定行。 It used to be a pain, in Visual Studio, to easily see what was modified in each file that were edited. 在Visual Studio中,过去很容易看到在每个编辑过的文件中修改了什么。

I mix this technique with the command line which I love. 我将这种技术与我喜欢的命令行混合在一起。 But, I understand how great it would be to have everything in the same window. 但是,我理解将所有东西放在同一个窗口中会有多棒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM