Some tips for using visual studio .net

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.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值