JULY's Personal Webpage

Thế giới vốn không công bằng … hãy thích nghi với chúng!!!

Using the MVVM Toolkit in VS2010

Posted by JULY on June 23, 2009

In the past I have written about how much I like the MVVM Toolkit released by Microsoft! I recently decided to install VS2010 and kick the tires! Because most of my work is in WPF and I almost always use the MVVM pattern, I naturally needed to port the VS2008 project template to VS2010! Here is what you need to know

The MVVM toolkit installed the project template into the following directory

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\CSharp\Windows\1033

Copy the WpfModelViewApplicationProjectTemplateV0.1.cs.zip to a temporary directory and extract the content. Locate and open the WpfModelViewApplicationProjectTemplate.cs.vstemplate. Comment or remove the following lines

<WizardExtension>
  <Assembly>Microsoft.VisualStudio.Presentation.Extensions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</Assembly>
  <FullClassName>Microsoft.VisualStudio.Presentation.Extensions.ModelView.TemplateWizard</FullClassName>
</WizardExtension>

Save the file and re-zip the directory content. All that is now left to do is place the edited version of the WpfModelViewApplicationProjectTemplateV0.1.cs.zip in the user project template location

TIP: Open VS2010 –> Tools –> Projects and Solutions for the directory path…

Restart VS2010 and now you have the project template available

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>