多层开发时,项目的管理问题

本文介绍了在使用Visual Studio开发Web应用时将Web项目转换为库项目的步骤,以解决团队协作及源代码控制系统集成的问题。文章还提供了创建链接文件的方法,以便在多个项目间共享文件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • Do not create web projects, create library projects instead.

    When developing a web application, using visual studio will make the developing process a bit easier. However, it's much difficult to share web projects by a team, especially which are integrated with a source control system, since to open or compile a web project, IIS support is necessary.

    Library projects are easy to be opened or compiled, be shared by team members, and be easily integrated with source control system.

    To modify an existing web project as a library project, you can:

    • Open the project file(.csproj), find the attribute ProjectType of the VisualStudioProject/CSHARP element, modidy "Web" as "Local".
    • Delete the .webinfo file
  • Using link files when you want to share some files among several projects.

    To realize what is a link file, you can visit this page: Share a GlobalAssemblyInfo.cs among projects in a solution.

    In the above article, I said that I didn't know how to create a link file from IDE directly. But actually, it's very simple. You can find that if you are carefull enough. To add a link file for a project,

    • Right click a project's title and select Add Existing Item.
    • Browse to the proper file, and on the Open button click on the little down arrow on the button and select Link File.

 第一条的意思:创建逻辑层和数据层不要创建Web项目,创建库项目,若是Web项目,在记事本中打开.csproj文件,找到 项目类型 属性,把Web改为Local

原英文:http://www.cnblogs.com/chenglin/archive/2005/05/30/165202.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值