two development tools for .net
DESCRIPTION
Two Development Tools for .NET. That You Should Never Miss!. Shenhua GU Jan 2008. 1. JetBrains ReSharper. Current Version 3.1 For VS2005. What is ReSharper?. A state-of-the-art add-in for VS2005 Help improve your productivity. Features. Error highlighting and quick fixes - PowerPoint PPT PresentationTRANSCRIPT
Two Development Tools for .NET
That You Should Never Miss!
Shenhua GU
Jan 2008
1
JetBrains ReSharper
• Current Version 3.1 For VS2005
What is ReSharper?
• A state-of-the-art add-in for VS2005
• Help improve your productivity
Features
• Error highlighting and quick fixes• Code generation• Refactoring• Code formatting• Code templates• Navigation and search• Integrated unit-test runner• And more…
Error Highlighting and Quick Fixes
Code Generation
• Press Alt+Ins in a class
Refactoring
• Move type
• Make method static/non-static
• Pull members up
• Push members down
• And more…
Code Formatting
• ReSharper takes it to a whole new level– Format according to a predefined setting– Optimizing using directives– Remove redundant this directives– Arrange modifier keywords
Code Templates
Navigation and Search
• Type Hierarchy View
Navigation and Search
• File Structure View
Navigation and Search
• Go to Type, Ctrl + T
• Or Ctrl + Click
Navigation and Search
• Find Usages
Integrated Unit-test Runner
Examples
• We’re gonna
– Create a business object
– Navigate around the classes
– Leveraging smart code analysis
Ad
• Jedi Coding
• Build console application in 8 minutes.
Future of ReSharper
• Version 4.0 EAP• Support VS2008
– Automatic properties– Object initializers– Collection initializers– Extension methods– Lambda expressions– LINQ– XAML files– …
2
Lutz Roeder's .NET Reflector
• Current Version 5.0
What is .NET Reflector
• A class browser for .NET components
• C#, VB.NET and IL decompiler
C# 3.0 Support
• Extension methods• Object initializers• LINQ query expressions• Collection initializers• Lambda expressions
C# 3.0 and 2.0 support
• Enable via View, Options, Optimization: .NET 3.5
• C# 2.0: Anonymous methods and nullable types
Code URL support• Navigate to code://mscorlib/System.Object via IE
• Ctrl+Alt+C to copy the URL for current item
• Add to HTML pages using <a href=“code://…”>
Disassembler• Expand Methods and Expand Types feature
• Context-sensitive documentation view• Click on declaration jumps to item in the browser• Tab to cycle through links, Up/Down to scroll• Context-based automatic variable naming
Analyzer• Add and analyze multiple items (DEL to remove)• “Exposed By” and “Instantiated By” search• “Assigned By” search for fields
Search
• String or Constant search
• Exact matching of multiple words
Assembly Lists
• Default lists for:– .NET Framework 3.5– .NET Framework 3.0– .NET Compact Framework 3.5– .NET Compact Framework 2.0– XNA Framework 1.0– DirectX for Managed Code– Mono
Resource Viewer
• View all kinds of resources: js, html, bmp, png, cur…• Save byte arrays in .resources file to disk
Examples
• Let's get our hands dirty• Mission 1
– What’s the data structure used by SortedList<T>?
• Mission 2– Investigate the life cycle of an ASP.NET
Page
• Mission 3– See the Javascript used by GridView