当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > Some tips for using visual studio .net

ASP.NET
asp.net 禁用viewstate在web.config里
asp.net 虚方法、抽象方法、接口疑问
c# 操作符?? null coalescing operator
.net 反序题目的详细解答
implicitly convert type ''int'' to ''short''的原因与解决方法
比较完整的 asp.net 学习流程
官网 Ext direct包中.NET版的问题
C# XML操作 代码大全(读XML,写XML,更新,删除节点,与dataset结合等)
c# 连接字符串数据库服务器端口号 .net状态服务器端口号
ASP.NET 路径问题的解决方法
asp.net TemplateField模板中的Bind方法和Eval方法
asp.net Web.config 详细配置说明
asp.net 2个日期之间的整月数的算法
ASP.Net PlaceHolder、Panel等控件未实现INamingContainer,导致FindControl无效
Request.RawUrl 属性的应用收
.net 读取项目AssemblyInfo.cs属性值
asp.net URL 显示乱码 解决方法
asp.net 页面之间传递参数的几种方法
asp.net 一个封装比较完整的FTP类
C# FTP,GetResponse(),远程服务器返回错误

ASP.NET 中的 Some tips for using visual studio .net


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 163 ::
收藏到网摘: n/a


Visual studio is a powerful IDE for languages such as C#, C++.net, VB.net. However, because there are so many functions, it's a bit difficult for a developer to become familiar with visual studio.
It's my pleasure to introduce some tips. Also any comment or suggestions are welcome. 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.