2
Vote

Item templates not appearing

description

I'm running Windows 8, Visual Studio Ultimate 2012 with Update 2. Following video tutorial, downloaded apexsdk 1.5, ran installer without problem, opened visual studio, create new wpf application just like video, go to project menu, add new item, Apex items are not shown in dialog... o__O

comments

dwmkerr wrote May 19, 2013 at 3:49 PM

Will look into it - did you initially have the VS 2012 preview edition? Because it has a different folder structure that was not migrated properly, this has caused problems for people in the past.

RossWright wrote May 20, 2013 at 5:14 AM

Nope, never had a preview edition installed. I believe I did have Visual Studio 2010 installed at one point, but took it off.

RossWright wrote May 21, 2013 at 5:43 PM

My team is moving ahead with your library so I had to reverse engineer things a bit and get it working. Here's what I did for posterity in case anyone else runs into this...

I got the assembly reference into the project using nuget.

I got the snippets working, by copying the files under C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC#\Snippets\1033\Visual C# and copied them to [My Documents]\Visual Studio 2012\Code Snippets\Visual C# and because I didn't want to reload VS, imported them using the snipped manager window under the tools menu. Not sure if that was necessary.

Similarly, I found the templates under C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\DaveKerr\Apex__1.4__\ItemTemplates. Wait a sec... 1.4?! I have never installed Apex before Thursday and the creation date of the folder confirms that. Anyway, I copied them to [My Documents]\Visual Studio 2012\Templates\ItemTemplates\Visual C# folder. That got them in VS, but when I clicked them I got:

Image

I searched my file system and I found that ApexWizards 1.5 is indeed in my GAC at C:\Windows\Microsoft.NET\assembly\GAC_32\ApexWizards\v4.0_1.5.0.0__98d06957926c086d. I go back to those template zip files, opened them up and edited the vstemplate files and, yep, all the references in the xml were set to Apex 1.4 assemblies... edited those to 1.5 and now things appear to work although the icons look inverted.

I'm guessing either you didn't update your vstemplate files when you released 1.5 and I'm the only person in the world who appreciates and uses the templates you made for us - highly unlikely. Or your installer does some kind of detection for VS2010 that got triggered and so I didn't get it in 2012. Note the 1.4 files were under the VS 10.0 folders when I found them. As I said before I had VS2010 on here and took it off. I also have an old version of SQL Management Studio based on VS 2010 on here. Looking in programs and features, VS2010 left a lot of crap when it left, so it might just be that's what tripped up the installer.

dwmkerr wrote May 21, 2013 at 6:54 PM

This is very useful information, I'll go through it carefully when it comes to the next release to make sure that I've incorporated all the bits and pieces you worked out - thanks.

yiyu1121 wrote Apr 22, 2014 at 6:58 AM

i get the same problem

wrote May 20, 2014 at 12:48 PM

TimJuPe wrote Oct 9, 2014 at 11:49 AM

I kind of solved it in VS2013 your way Ross.
It would be lovely to have a version of Apex which runs out of the box.
Very cool work, thank you both!