Vincent Leung .NET Tech Clips

The latest tech clips from the .NET community

What’s new in Visual Studio 2010 IDE – Code Editing, Searching & Navigating

Zoom

In any code editing window or text editing window, you can quickly zoom in or out by pressing and holding the CTRL key and moving the scroll wheel on the mouse. Or click the dropdown at the lower left hand corner.

image

Generate From Usage

The Generate From Usage feature enables you to use classes and members before you define them. You can generate a stub for any class, constructor, method, property, field, or enum that you want to use but have not yet defined. You can generate new types and members without leaving your current location in code. This minimizes interruption to your workflow.

Generate From Usage supports programming styles such as test-driven development. Press CTRL+ . to display the Smart Tag, and the appropriate options appear.

Also check out this video:

image

Call Hierarchy 

CTRL+ALT+K Call Hierarchy (available only in C#) enables you to navigate through your code by displaying all calls to and from a selected method, property, or constructor. This enables you to better understand how code flows and to evaluate the effects of changes to code. You can examine several levels of code to view complex chains of method calls and additional entry points to the code, which enables you to explore all possible execution paths.

Call Hierarchy is available at design time, unlike the call stack that is displayed by the debugger.

image

Navigate To

Ctrl + comma, new for Visual Studio 2010, is a powerful way to search, especially when you’re not sure exactly what you’re looking for. It helps you locate items in your code by using "fuzzy" search capabilities. For example, if you type Foo Bar instead of FooBar, Navigate To will still return useful results. It’s a smart, incremental search that refines as you type and will find any symbols (e.g. file, type, and member names) matching your search terms.

image

Highlight References?

When you click a symbol in the source code, all instances of that symbol are automatically highlighted in the document. To navigate between references by using the keyboard, press CTRL+SHIFT+DOWN ARROW or CTRL+SHIFT+UP ARROW.

Box Selection

VS 2010 adds the following new capabilities to the box selection feature:

  • Text insertion: Type into a box selection to insert the new text on every selected line.

  • Paste: Paste the contents of one box selection into another.

  • Zero-length boxes: Make a vertical selection zero characters wide to create a multi-line insertion point for new or copied text.

Multi-Monitor Support

You can drag the document/property windows outside the IDE to any location you want. To return the window to its most recent docked location, hold down the Ctrl key and double-click the title bar of the window.

Other code searching and navigating in Visual Studio 200X:

Quick Find (Ctrl+F), Find in Files (Ctrl+Shift+F), Incremental Search (Ctrl+I), Go To Definition (F12), Find Symbol (Shift+F12), Navigate Backward (Ctrl+minus) and Navigate Forward (Ctrl+Shift+minus)

October 25, 2009 Posted by Vincent Leung | VS2010, Visual Studio | | No Comments Yet

All you need to know about Visual Studio 2010 Beta 2

image

Visual Studio 2010 Beta 2 Download – Home

http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx

What’s new in .NET Framework 4

.NET Framework 4 Beta 2 Documentation

http://msdn.microsoft.com/en-us/library/w0×726c2%28VS.100%29.aspx

Walkthroughs

Training Kit – Oct. Preview

http://www.microsoft.com/downloads/details.aspx?FamilyID=752CB725-969B-4732-A383-ED5740F02E93&displaylang=en

Training Course – includes videos and hands-on-labs designed to help you learn how to utilize the Visual Studio 2010 features and a variety of framework technologies

http://channel9.msdn.com/learn/courses/VS2010/

Samples – C#, F#, Parallel Processing, Office, SharePoint

http://msdn.microsoft.com/en-us/dd238515.aspx

Visual Studio 2010 Beta 2 and Silverlight updates – Tim Heuer

http://timheuer.com/blog/archive/2009/10/19/silverlight-and-visual-studio-2010-beta-2.aspx

http://timheuer.com/blog/archive/2009/10/22/can-i-use-vs2010-for-silverlight-3-development.aspx

Silverlight Toolkit Oct. 2009 Release – support Visual Studio 2010 design time experience, Extensible Charting, Drag & Drop support for controls

http://silverlight.codeplex.com/wikipage?title=Silverlight%20Toolkit%20October%202009%20change%20list&referringTitle=Home

Visual Studio 2010 Beta 2 from an ASP.NET MVC Perspective – Phil Haack

http://haacked.com/archive/2009/10/20/vs10beta2-and-aspnetmvc.aspx

AJAX Control Toolkit

Download Deep Zoom Composer

Download ASP.NET Ajax Control Toolkit

Microsoft Ajax Library and Visual Studio 2010 Beta 2 – Stephen Walther

http://stephenwalther.com/blog/archive/2009/10/21/the-microsoft-ajax-library-and-visual-studio-beta-2.aspx

Visual Studio 2010 and .NET Series by ScottGu

http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx

IronPython – http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125

  1. Install IronPython 2.6 CTP for .NET 4.0 Beta 2.msi from -http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125
  2. Follow any of the many dynamic walkthroughs online -http://blogs.msdn.com/vbteam/archive/2008/12/17/walkthrough-dynamic-programming-in-visual-basic-10-0-and-c-4-0-lisa-feigenbaum.aspx

IronRuby

http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28125

Issues:

No Javascript Intellisense – http://west-wind.com/weblog/posts/50857.aspx

In case you need to uninstall Visual Studio:

  • Try to uninstall using the ISO image.
  • Or you can try this if you don’t have the ISO.1. Uninstall TFS Object Model (This step is Visual Studio 2010 Team Suite only)
    From Add/Remove, uninstall Microsoft Team Foundation Server 2010 Beta 1 Object Model
    2. Uninstall all instances of Visual Studio 2010 products (for example, Visual Studio 2010 Ultimate).
    3.1 If you have previous versions of Visual Studio
    Uninstall other remaining supporting products, in the specified order. (Ignore items that are not present on your computer.)
    a.    Visual Studio 2010 Tools for Office Runtime Beta 2
    b.    The .NET Framework version 4 Language Pack
    c.    The .NET Framework version 4 Extended (reboot, if prompted)
    d.    The .NET Framework version 4 Client (reboot, if prompted)

    3.2 If no previous versions of Visual Studio
    3.2.1 Optionally, uninstall the following supporting products that may have been installed with Visual Studio 2010.  NOTE: These components may also be used by other product suites on your computer.
    a.    Web Deployment Tool
    b.    Silverlight 3 SDK
    c.    SQL Server 2008 Management Objects
    d.    SQL Server CLR Types
    e.    SQL Server 2008
    f.    SQL Server 2008 Native Client
    g.    SQL Server Compact 3.5 SP2

    3.2.2 Uninstall other remaining supporting products, in the specified order.  (Ignore items that are not present on your computer.)
    a.    Visual Studio 2010 Tools for Office Runtime Beta2
    b.    The .NET Framework version 4 Language Pack
    c.    The .NET Framework version 4 Extended (reboot, if prompted)
    d.    The .NET Framework version 4 Client (reboot, if prompted)
    4. Reboot
    5. Uninstall C++ 2010 Redistributable
    From Add/Remove, uninstall Microsoft Visual C++ 2010 Beta 2 Redistributable (x86 and/or x64)
    6. Reboot

October 23, 2009 Posted by Vincent Leung | .NET 4, VS2010, Visual Studio | | No Comments Yet

Prism Quick Start Kit

image 

image

Prism Quick Start Kit

A number of solution and project templates for Visual Studio that would give you a simple working app that you could tweak and modify. These would fall somewhere in-between the Quick-Starts and Reference Implementation and provide a basic solution and project structure into which you could add your application specific files.

The quick-start solution is meant to provide a basic structure for a Prism app and to include the most commonly used features of Prism. I find it very useful as a starting point because it contains all of the little code snippets and that you often need and has a basic structure in place making it pretty straightforward to take it and modify it to create many different types of applications. It’s hopefully also a good place to experiment with Prism and to learn about some of its basic features.

David Hill’s WebLog : Prism Quick Start Kit

October 7, 2009 Posted by Vincent Leung | Prism, Silverlight, Visual Studio | | No Comments Yet

VS 2010 and .NET 4 Series – ScottGu’s Blog

 

image

Scott Gu will update this page with links to the individual posts I do as I publish them along the way:

Via VS 2010 and .NET 4 Series – ScottGu’s Blog

August 30, 2009 Posted by Vincent Leung | .NET 4, VS2010 | | No Comments Yet

Box Insertion and Multi-Edit in Visual Studio 2010

June 25, 2009 Posted by Vincent Leung | VS2010 | | No Comments Yet

Running NUnit 2.5 against Visual Studio 2010 .Net 4 code

 

I discovered that if you add the following to the relevant NUnit config file you can run a test dll built for .NET 4.0 in Visual Studio 2010 beta

Under <configuration> add:

<startup>  <requiredRuntime version="v4.0.20506" /></startup>

and under <runtime> add:

<loadFromRemoteSources enabled="true" />

June 18, 2009 Posted by Vincent Leung | NUnit, TDD, VS2010 | | 6 Comments

Visual Studio 2010 and .NET Framework 4 Training Kit

 

May Preview of the Visual Studio 2010 and .NET Framework 4 Training Kit

Download details: Visual Studio 2010 and .NET Framework 4 Training Kit

May 20, 2009 Posted by Vincent Leung | .NET 4, VS2010 | | No Comments Yet

Announcing VS2010 / .NET Framework 4.0 Beta 1

May 20, 2009 Posted by Vincent Leung | VS2010 | | No Comments Yet

Pex – Automated Exploratory Testing for .Net

 

Pex  image

Pex: Automated Exploratory Testing for .NET

Pex (Program EXploration) is an intelligent assistant to the programmer. From a parameterized unit test, it automatically produces a traditional unit test suite with high code coverage. In addition, it suggests to the programmer how to fix the bugs. Watch the screencast!

Pex – Automated Exploratory Testing for .Net

May 30, 2008 Posted by Vincent Leung | Tools, VS2008, Visual Studio | | No Comments Yet

IronPython Studio – Home

image 

Introduction

IronPython Studio is a free full IDE (Integrated Development Environment) for the Python programming language. It is based on the existing IronPython example that is included in the VS SDK.
IronPython Studio is based on the Visual Studio 2008 Shell runtime (royalty free) and can be installed without requiring any version of Visual Studio.

IronPython Studio – Home

February 6, 2008 Posted by Vincent Leung | Python, Visual Studio | | No Comments Yet