最佳实践:协作环境、Bin 目录、SVN [英] Best Practice: Collaborative Environment, Bin Directory, SVN

查看:30
本文介绍了最佳实践:协作环境、Bin 目录、SVN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 SVN 的协作开发环境中检查 BIN 目录的最佳做法是什么?是否应该从签入中排除项目级引用?添加所有 bin 目录是否更容易?

What are the best practices for checking in BIN directories in a collaborative development environment using SVN? Should project level references be excluded from checkin? Is it easier to just add all bin directories?

我开发了很多 DotNetNuke 站点,似乎在多开发人员环境中,正确设置环境总是一项艰巨的任务.

I develop a lot of DotNetNuke sites and it seems that in a multi-developer environment, it's always a huge task to get the environment setup correctly.

最终目标(当然)是让新的开发人员从 SVN 中检出主干,恢复 DNN 数据库并让它一切正常......

The ultimate goal (of course) is to have a new developer checkout the trunk from SVN, restore the DNN database and have it all just 'work'...

推荐答案

任何预期在 GAC 中的程序集都应留在 GAC 中.这包括 System.web.dll 或您将在生产中部署到 GAC 的任何其他 3rd 方 dll.这意味着新的开发人员必须安装这些程序集.

Any assemblies that are expected to be in the GAC should stay in the GAC. This includes System.web.dll or any other 3rd party dll that you'll deploy to the GAC in production. This means a new developer would have to install these assemblies.

所有其他 3rd 方程序集应通过相对路径引用.我的典型结构是:

All other 3rd party assemblies should be references through a relative path. My typical structure is:

-Project
--Project.sln
--References
---StructureMap.dll
---NUnit.dll
---System.Web.Mvc.dll
--Project.Web
---Project.Web.Proj
---Project.Web.Proj files
--Project
---Project.Proj
---Project.Proj files

Project.Web 和 Project 相对引用 root/References 文件夹中的程序集.这些 .dll 被检入 subversion.

Project.Web and Project reference the assemblies in the root/References folder relatively. These .dlls are checked into subversion.

除此之外,*/bin */bin/* obj 应该在您的全局忽略路径中.

Aside from that, */bin */bin/* obj should be in your global ignore path.

通过此设置,对程序集的所有引用要么通过 GAC(因此应该适用于所有计算机),要么与解决方案中的每个项目相关.

With this setup, all references to assemblies are either through the GAC (so should work across all computers), or relative to each project within your solution.

这篇关于最佳实践:协作环境、Bin 目录、SVN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆