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

ASP.NET
.NET中如何生成静态页
ASP.NET定制简单的错误处理页面
在客户端验证密码强度[2],兼容FireFox和IE
如何以及为何创建Search .NET版
ASP.NET十分有用的页面间传值方法
使用ASP.NET AJAX框架扩展HTML Map控件
AJAX使用技巧:如何处理书签和翻页按扭
.NET环境下几种不同的邮件发送解决方案
.NET vs J2EE——面对SOA的荒谬与误解
ASP.NET学习篇(1)——开篇
ASP.NET学习篇(2)——安装与配置
ASP.NET学习篇(3)——几个简单的ASP.ENT的例子
ASP.NET学习篇(4)——服务器端的控件
项目调试时出现用到的一个组件“访问被拒绝”的解决方法
ASP.NET中“找不到指定模块”的解决办法
采用Native 引导方式的.Net加密保护
“您无权查看该网页”的原因和解决方法
ASP.NET中Datagrid常见错误
编写ASP.NET应用程序的技巧
Scott Mitchell ASP.NET 2数据控件嵌套

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-03   浏览: 164 ::
收藏到网摘: 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.