120 likes | 309 Views
Know your tools better: Tips and tricks on how to enhance .NET development using VS 2008 and other tools. Bijoy Singhal Developer Evangelist | Microsoft India http://blogs.msdn.com/bsinghal. Tips to make coding productive. Class Diagram and Class View Examine the framework: type relations
E N D
Know your tools better:Tips and tricks on how to enhance .NET development using VS 2008 and other tools Bijoy Singhal Developer Evangelist | Microsoft India http://blogs.msdn.com/bsinghal
Tips to make coding productive • Class Diagram and Class View • Examine the framework: type relations • Search the methods in the classes • Use Extension Methods • Create code snippets by dragging code on toolbox • Add the using clause automatically • Remove unused usings. • Use Regions • Refactoring code
Tips to make coding productive • Object browser (ctrl + alt + j) • Goto definition (F12) • Find all reference (shift + F12) • Incremental Search (ctrl + I ) • Clip board ring (shift + crtl + V) • Comment/Uncomment (ctrl K + ctrl C/ctrl K + ctrl U) • Find box commands (ctrl + D, ctrl +/, > open, > saveall) • Format doc (ctrl K, ctrl D) • Smart tags (ctrl+.) • Insert Code snippets (ctrl K, ctrl X)
Profiling • Code Analysis • Code Metrics • Performance Wizard
Managing the Build process • Create configurations using the configuration manager • Batch Builds • Always create symbols for both your debug and release builds • Building code for different architectures • Optimize code • Build code with highest warning level • Pre build and post build events
Tips for Debugging • Data Tip Opacity • Conditional breakpoints • Call Stack • Immediate window • Command window • Output window • Unmanaged code debugging • Just My Code debugging • .NET framework source stepping • Debugging Exceptions • SOS.dll
.NET Tools • Fusion Log Viewer • IlDasm • CorDbg • CorFlags • Gacutil • Permcalc • Sn • Sqlmetal • NGEN.EXE • resgen • Performance Monitor counters
Other Tools • Lutz Reflector (now purchased by ANTS) • ANTs Profiler (3rd Party) • CLR profiler (free from Microsoft) • FxCop (free code analysis tool from Microsoft)
Additional Info • C# key board reference poster • http://www.microsoft.com/downloads/details.aspx?FamilyID=c15d210d-a926-46a8-a586-31f8a2e576fe&DisplayLang=en • VB key board reference poster • http://www.microsoft.com/downloads/details.aspx?FamilyID=6bb41456-9378-4746-b502-b4c5f7182203&DisplayLang=en • Sara Ford’s Blog: • http://blogs.msdn.com/saraford/
Feedback / QnA • Your Feedback is Important! Please take a few moments to fill out our online feedback form For detailed feedback, use the form at http://www.connectwithlife.co.in/vtd/helpdesk.aspx Or email us at vtd@microsoft.com • Use the Question Manager on LiveMeeting to ask your questions now!
Contact (optional slide) • Blog Address http://blogs.msdn.com/bsinghal • Email Address bsinghal@microsoft.com