views:

211

answers:

6

Hi,

I installed Windows Phone Developer Tools. I can create the projects with Blend 4 or VS Express Edition.

I want to use the templates in Visual Studio 2010 Pro. I can see the Windows Phone Game Template under XNA Studio but the other main templates are missing. I can see them at this directory:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Silverlight for Windows Phone\1033

I reinstalled the Dev Tools many times but my VS2010 Pro can't load the templates!

Any solution?

Thanks,

Regards.

A: 

The directory your looking at is for individual files the directory that you need to be looking for if you want to create new WP7 projects is:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Silverlight for Windows Phone\1033
Barranger Ridler
Yes. It does exist. But how can I load it into VS2010PRO?
Zakaria
A: 

If that file exists, you can access the templates by first selecting language, and then looking under the language for the template. For instance, expand "Vishual C#", and you will see "Silverlight for Windows Phone as one of the template sets.

ChimeraScorn
but id doesn't appear in that list in Visual Studio 2010 Pro. But it does in Visual Studio Express for Windows Phone.
Zakaria
A: 

Did you try to reset the settings of VS with the command

devene.exe /InstallVSTemplates 

or maybe

devene.exe /InstallVSTemplates /ResetSettings  ?

http://msdn.microsoft.com/en-us/library/ms241279.aspx

Matthieu
A: 

You could have an earlier version of the phone tools already installed causing the template install to silently fail. Look for it on Add/Remove programs.

Otherwise it could be a corrupted VS install. Try to repair or uninstall/reinstall

SteveChadbourne
A: 

Ideally, the developer setup should automatically install it for you. In case you are having issues, check this post... and let us know if it helped.

http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/04/29/windows-phone-developer-tools-ctp-refresh.aspx

Rahul Soni
A: 

Hi Zakaria,

Three thoughts come to mind. Well, besides the obvious thought, how frustrating it must be.

A. Sometimes installs get messed up from various ctp installs/uninstalls in untested sequences. Feel free to try this that I wrote during WP7 CTP to try and help people resolve install issues. It helped some people deal with install issues. This may be a little overcatious, but doesn't take much longer. When it came time to install RTM I was able to do a single uninstall WPDT and install the tools, no hassles since.

Known Good March -> April CTP Un/Install Sequence

B. Alternatively, if something is super messed up, try a clean install of Win7 on a spare hard disk. At least if it works you're more informed and can decide whether a clean OS or more tinkering is a better use of your time.

C. Do a BeyondCompare (or other directory comparison) to a friends install or an install on another PC, find what's different, copy the appropriate files over.

Mick N