prism application template

Topics: Prism v4 - Silverlight 4
Aug 11, 2011 at 9:38 PM
Edited Aug 12, 2011 at 4:24 AM

Recently I tried to install the prism application template from david hill and it gave a reply like this path could not be found

I am using windows 7.. win zip http://blogs.msdn.com/b/dphill/archive/2010/03/25/prism-template-pack-for-visual-studio-2010.aspx

The post said copy to the path mentioned in this article...How can this be done in winzip

  http://kb.winzip.com/kb/entry/82/  Is this what I need to do in win zip? Please answer this question THank you...

 

 

Developer
Aug 12, 2011 at 1:49 PM

Hi,

This package should be treated as a Visual Studio Add in, so you should rename the file to .vsix extension and double click it. This is explained in David´s hill blog:

"You can download the VSIX package herenote that you will have to change the file extension from .zip to .vsix in order to install it –"

As this is not strictly related to Prism, you might find better support about this in the Visual Studio forum.

I hope you find this useful,

Agustín Rodriguez Adami
http://blogs.southworks.net/aadami

Aug 15, 2011 at 9:51 PM
Edited Aug 15, 2011 at 11:57 PM

I am have tried to do this multiple times and yet I repeat this no has has stepped up to the plate and helped me!!!

This means explaining things in detail!!! Yes I have right to be mad because yes I have tried this multiple times!! yet no one wants to to explain even if this really simple.  

Yes This should be a part of the prism forum!!!! I am very very very  disappointed in this forum!! I am mad!  Because you

agustin should have explained it in greater detail rather than brushing this off!!! Dont you want people to succeed?? 

don't you want to help people? I would greatly appreciate any one's help on this matter...Thank you...

      

Developer
Aug 16, 2011 at 3:08 PM

Hi,

I'm sorry to hear that our previous answer was not helpful for your problem. The Prism templates mentioned in David Hill's blog are packaged inside a VSIX package, which is a means of packaging content to be installed in the Visual Studio gallery. In case you are having problems installing a VSIX package, it's very likely that your problem is related to your visual studio installation.

On the other hand, although the VSIX package is in fact a zip file with its extension changed, it not only contains the actual files that will be installed, but it also contains additional metadata such as the vsix manifest and the content types (i.e. the extension.vsixmanifest and [Content_types].xml, which are both xml files). Visual Studio probably uses this metadata to perform some operations that result in correctly installing the extension contained in the package; so extracting the files and manually copying them might not be enough to have the extension installed. You need to rename the Prism.TemplatePack.RC.zip file to Prism.TemplatePack.RC.vsix and double click it.

Note that you need to have the "Hide extensions for known file types" box located in the View tab of the Folder Options in Windows 7 unchecked in order to see the extension of the files. You can read more about that in the following article:

Show or hide file name extensions

So to summarize this, the steps for installing this are the following:

1. Download the Prism.TemplatePack.RC.zip file from David Hill's blog.

2. Rename it to Prism.TemplatePack.RC.vsix.

3. Double click the Prism.TemplatePack.RC.vsix file, which will install the templates.

Also, please note that you will need Visual Studio 2010 to be able to install a VSIX package.

Based on the aforementioned considerations, the situation you're explaining here is related to a problem specific to Visual Studio, rather than a Prism related issue, and that's why we believe you will find better support in the Visual Studio forum. There you will find a community dedicated to specific Visual Studio issues.

If you have any further question which you believe is related to Prism, or if you're still unable to make this work after following the steps we mentioned, you could post it here along with the detailed steps you've taken, so that we help you find a solution to your problem.

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi

Aug 16, 2011 at 9:32 PM

Guido,

 Thank you for replying,   and for caring I still unfortunately am having multiple problems and their  should be a much easier solution for people.

Your directions were still  not detailed enough for example there a number of templates to install both with unity and mef     

The biggest error I seem to be getting C:users/computername/prismtemplate1.4 pack refers to a location unavailable

I will voice my complaint to the vsix forum on msdn as well. I am sorry to get upset however when you install any templates

the directions should be clearer than what they are

 c:\users\mycomputer name\documents\visual studio 2010\Projects is where I normally set my projects

Thank you....

   

   

Developer
Aug 17, 2011 at 5:56 PM

Hi,

From what I've seen, the templates that are present in the blog post you mentioned are using Unity. If you believe there should be more templates, you could create a work item in the issue tracker describing your request.

Have you followed the steps I've detailed in my previous answer? Does the VSIX installation throw you that exception? In case you can't find a solution for this, it would be helpful if you could provide us with the exact steps you've followed and the error message you've experienced, so that we can help you further with this.

Note that you don't need to manually place the templates in the folder where they should be, as the VSIX installation will do that automatically. Once installed, the templates should work regardless of where you place your projects.

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi

Aug 17, 2011 at 8:42 PM
Edited Aug 18, 2011 at 3:52 AM

Guido,

You are a genius!!! Thank you so much!!!  Mef unity prism templates installed!!!  

I am very happy.Thank you so much  for your help!!!   I tried to do exactly according to your directions. This time it worked.!!!  http://blogs.msdn.com/b/dphill/archive/2011/03/04/prism-template-pack-1-4-now-with-mef-support.aspx

This is what worked for me I followed your directions and on my computer I changed the name of the prism template

to prismtemplate 1.4  vsix and hit the open button  One comment a popup warning -- gave a warning when you change this extension this may not work-I ignored that  message   and hit ok and it worked!!  

 Thank you so much for your help!!!

If anyone wants some more documentation I would be happy to provide directions

By the way if I have any questions using unity for prism should I post this on the unity forum?? or can I use this forum

I know you are big into mef...

      

Developer
Aug 18, 2011 at 2:08 PM

Hi,

I'm glad you found our support helpful.

If your questions are entirely related to Unity and do not have anything to do with Prism, you might obtain better support in the Unity forums; but if your questions are about using Unity in a scenario that Prism covers, you could post them in the Prism forums.

Thanks,

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi