Guy Barrette, Microsoft, Regional Director, Montreal, Canada, Visual Studio, .NET Expertise December 2009 - Posts - Guy Barrette

Guy Barrette

Microsoft Regional Director, Montreal, Canada

December 2009 - Posts

Visual Studio Talk Show #111 is now online - Migration des outils open source vers TFS (French)

Accueil

http://www.visualstudiotalkshow.com

Karell Ste-Marie: Migration des outils open source vers TFS

Nous discutons avec Karell Ste-Marie de son expérience à migrer d'un environnement de développement open source vers un environnement de développement avec Team Foundation Server (TFS).

Karell Ste-Marie est présentement Officier Technique Principal (CIO) chez BrainBank Inc qui compte d'important clients tel que Johnson and Johnson, Blue Cross Blue Shield, Northwestern Mutual et d'autres de même importance. BrainBank Inc utilise uniquement la platforme .NET pour ses produits. Depuis son initiation a la programmation sur un Apple II+ avec 32 Ko de RAM, Karell a travaillé sur diverse platformes et programmé en Basic, DBase, Clipper, Turbo Pascal, Visual Basic, SQL et VB.NET.

Télécharger l'émission

Si vous désirez un accès direct au fichier audio en format MP3, nous vous invitons à télécharger le fichier en utilisant un des boutons ci-dessous.

Si vous désirez utiliser le feed RSS pour télécharger l'émission, nous vous invitons à vous abonnez en utilisant le bouton ci-dessous.

Si vous désirez utiliser le répertoire iTunes Podcast pour télécharger l'émission, nous vous encourageons à vous abonnez en utilisant le bouton ci-dessous.

Bookmark and Share
Posted: Dec 21 2009, 07:13 AM by guybarrette | with no comments
Filed under:
Adding MVC capabilities to an existing Web Forms project

If you want to add MVC capabilities to an existing Web Forms project, there are no automatic way to do it.  I wish the process was as simple as right-clicking on the Web Forms project and selecting something like “Add MVC Capabilities…” but no, it’s a manual process.

Before starting, make sure you backup your Web Forms project (just in case)  ;-)

This process work for VS 2010 Beta projects and I haven’t tested it on VS 2008 projects.

First, you need to add 3 references to your Web Forms project:

  • System.Web.Abstractions
  • System.Web.Mvc
  • System.Web.Routing

BTW, watch for the DLL versions number (MVC 1 & 2) an pick version 2.

For the next steps, the easiest way is to create a new MVC project and copy the required elements.

From the MVC project, open the Web.config file.  You’ll need all the MVC related configuration.  The config stuff you need is in the following sections:

  • Compilation
  • Pages
  • HttpHandlers
  • System.WebServer
  • Runtime

Copy these sections but make sure you don’t overwrite some configuration that’s already in your Web Forms Web.confg file!

Next, open the Global.asax file and copy the RegisterRoutes method and the call in the Application_Start.  Make sure to also add these using:

  • System.Web.Mvc
  • System.Web.Routing

Next, copy the Web.config file located in the Views folder. 

The project should now compile.

The last step is to tell Visual Studio that the project has now MVC capabilities.  To do that, you need to edit the project file and add the MVC project type GUID to the ProjectTypeGuid section.  If you don’t do it, you won’t be able to use the Visual Studio tooling to add controller and views.  In the MVC solution, right click on the MVC project and select Unload.  Now right click on the project and select Edit.  Locate the ProjectTypeGuids section and copy the first GUID.  As of VS 2010 Beta 2, the GUID is {F85E285D-A4E0-4152-9332-AB1D724D3325}.  Unload and edit the Web Forms project file and copy the GUID.  Make sure to leave no space.  Alternatively, you can use good old Notepad to edit the project file.

Bookmark and Share
Posted: Dec 20 2009, 12:36 PM by guybarrette | with 1 comment(s)
Filed under:
Visual Studio 2010 and .NET Framework 4 delayed

Microsoft announced that the release of Visual Studio 2010 and the .NET Framework 4 will be delayed a little bit to help them enhance performance.  A public Release Candidate version will ship before the final bits.

If you ask me, this is good news.  I’d rather have the final products delayed a little bit then to have to work with something buggy fixed by a quick service pack a couple of months later.

Get all the details on ScottGu and Soma blogs.

Bookmark and Share
Posted: Dec 19 2009, 11:34 AM by guybarrette | with no comments
Filed under:
DevTeach Toronto 2010 sessions

Go to the DevTeach site

The DevTeach Toronto 2010 session list is now online. Need a few reasons to attend DevTeach 2010?

How about direct access to these .NET experts?



ButWait

How about spending less than $1,000 on registration and getting VS Pro with MSDN Premium valued at $2,400?

BTW, space is limited to 240 attendees.

Bookmark and Share
Posted: Dec 19 2009, 11:05 AM by guybarrette | with 1 comment(s)
Filed under:
Martin Lapierre on Code Contracts in Code Magazine

Fellow Montrealer Martin Lapierre had an article about Code Contracts called “Introducing Advanced Code Contracts with the Entity Framework and Pex” published in the Jan/Feb 2010 Code Magazine issue.  Congrats Martin!

CodeMagJanFeb2010

http://www.code-magazine.com/Article.aspx?quickid=1001101

Bookmark and Share

Posted: Dec 19 2009, 10:37 AM by guybarrette | with no comments
Filed under:
Planning for WCF RIA Services?

There are currently two version of WCF RIA Services:

  • WCF RIA Services Beta for Visual Studio 2008 SP1
  • WCF RIA Services Preview for Visual Studio 2010

The first is compatible with Silverlight 3 and the second with Silverlight 4.  From what I understand, Microsoft will not update the current Beta for Visual Studio 2008 SP1.

In other words:

  • Using Silverlight 3, you’ll use RIA Services bits that will stay in Beta forever.
  • If you want to use the final (and supported) RIA Services bits, you’ll have to develop for Silverlight 4, meaning upgrading to Visual Studio 2010.
 
Bookmark and Share
Posted: Dec 13 2009, 11:00 AM by guybarrette | with no comments
Filed under:
Installing Win7 from a USB flash drive

Microsoft released a tool on CodePlex that copy the Windows 7 bits from an ISO file to a USB flash drive so that you can install the new OS on computers that don’t have DVD drives like netbooks.

For those interested in why the tool was gone  for a while and suddenly reappeared, Mary Jo Foley has that story.

Bookmark and Share
Posted: Dec 11 2009, 02:58 PM by guybarrette | with no comments
Filed under:
Richard Campbell Remixed

Yesterday, my wife wanted to watch “Confessions of a Shopaholic” on TV.  Being bored, I went to my computer and created this MP3 based upon the samples John Bristowe gathered for his Richard 5000 Silverlight app, an homage to Richard Campbell.  Richard is amongst other things the .NET Rocks co-host and RD for the Vancouver region.

Richard, you rock!

Bookmark and Share
Posted: Dec 06 2009, 01:04 PM by guybarrette | with no comments
Filed under:
More Posts