在 C# Web 项目中使用 svn - 我需要一些技巧
我有两个解决方案。
sln 1 - .net MVC c# 项目 + 2 个类库项目。
sln 2 - .net WCF c# 项目 + 3 个类库项目。
我想在 3 位程序员之间共享代码。
我的问题:
- 我应该将 2 个解决方案放在一个存储库中吗?
- 我应该将整个(!)解决方案包含在存储库中吗?
如果我这样做,每次我编译或者甚至在我的 VS 中做一些事情时,我都会让工作人员提交。
那么如果是的话,我需要“添加忽略”什么?
I have 2 solutions.
sln 1 - .net MVC c# project + 2 class libraries projects.
sln 2 - .net WCF c# project + 3 class libraries projects.
I want to share the code between 3 programmers.
My questions:
- Should I put the 2 solutions in one repository?
- Should I include the entire(!) solution in the repository?
If i do so, every time I compile or even do something in my VS i get staff to commit.
So if yes, what do i need to "add to ignore"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用两个项目,那么最好将解决方案分开放置。
避免将 bin 和 obj 目录添加到 SVN。
请参阅有关为 ASP.Net 设置 SVN 的代码项目文章 和 Windows 上的 subversion 实用指南
另请参阅visualsvn 指南
If you are using two projects then better to put the solutions separately.
Avoid adding bin and obj directories to SVN.
See a codeproject article about setting SVN for ASP.Net and a Practical guide to subversion on Windows
Also see visualsvn guide