Scott Hanselman – Web Deployment Made Awesome: If You’re Using XCopy, You’re Doing It Wrong

 

Here’s an outline of what Deployment Related topics Scott covered

  • Web Packaging – Offline vs. Online
    • From VS 2010
    • From IIS Manager
  • Web.Config Transformation
    • Transform Syntax
    • Locator Syntax
    • Why not XSLT?
  • Deploying
    • Command Line
    • What If Switch
    • From IIS
    • Content Sync
  • DB Deployment
    • Scripting Source DB
    • Adding custom SQL Scripts
  • Download and Deployment of Open Source
    • Web PI
    • App Gallery
  • One Click Publish
    • Using Web Deploy (Ms Deploy) WMSVC
    • Using Web Deploy (Ms Deploy) Remote Agent
    • Using InProc Web Deploy (Ms Deploy)

Here’s some cool highlights about WebDeployment in Visual Studio 2010. You can right-click on your web.config and click "Add Config Transforms."

image

When you do this, you’ll get a web.debug.config and a web.release.config. You can make a web.whatever.config if you like, as long as the name lines up with a configuration profile. These files are just the changes you want made, not a complete copy of your web.config.

Fore more visit Scott Hanselman – Web Deployment Made Awesome: If You’re Using XCopy, You’re Doing It Wrong

Validating Application Architecture with Visual Studio 2010 – Layer Diagrams

image

One of the pretty cool new features of Visual Studio 2010 (in the Premium and Ultimate) is that they have provided you basic modeling abilities inside the IDE.  One of the new features is the Layer Diagram.  A Layer Diagram allows you to visually see how your various components (from assembly all the way down to methods) interact and relate.  One great feature that the Layer Diagram provides you is a way to be able to take a snapshot of your systems architecture and later perform validation against that snapshot to see if your code still conforms to your desired layout.

In this post we will review how to create a layer diagram and then how to validate your architecture against that diagram. To read more goto –> Validating Application Architecture with Visual Studio 2010 – Layer Diagrams

image

Once you have the Architecture Explorer open, simply drag on items from the view onto canvas.

image
Click Generate Dependencies and once VS is done, the canvas should look like below:
image

Lets pretend that some time has gone by and you want to double check to see if your code still reflects your desired architecture as you laid out previous

image

You can also check out this post on Layer Diagram: http://blogs.msdn.com/jasonz/archive/2010/02/18/favorite-vs2010-features-layer-validation.aspx

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)

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/w0x726c2%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