This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
After successful installation of LS 2.2. the designer item template did not show up in VS 2008 German edition. Part of the problem is known and has already been reported some time ago (see here). As suggested in the post I copied the folder Data\1033 to Data\1031 and refreshed the item templates cache. Still no designer in VS. I took a closer look at the CSharp.vstemplate file and found that the version of the VSTemplate was 2.0.0 instead of 3.0.0. Also the assembly node refers to Microsoft.VSDesigner, Version=8.0.0.0 instead of Microsoft.VSDesigner, Version=9.0.0.0. I replaced the old values in the file (also in zip file), refreshed the item templates cache, restarted VS 2008 and...the LS designer showed up. Just thought you might want to know about. |
|
|
Thanks for the heads up. We'll take a look at fixing those references (I think they're that way because the toolkit we use also targets VS2005, and normally VS2008 will handle references to VS2005 DLLs, but perhaps that doesn't work in international versions of VS2008). Anyway, thanks again for investigating and for letting us know what the fix is! |
|
|
hi ! I have the same problem. Could you please post the vstemplate. thanks, harald |
|
|
I tried :
<?xml version="1.0" encoding="utf-8"?> <VSTemplate Version="3.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> <Name Package="{af67eb34-a276-4aad-9e7a-9a672c30f1f1}" ID="103"/> <Description Package="{af67eb34-a276-4aad-9e7a-9a672c30f1f1}" ID="102"/> <Icon Package="{af67eb34-a276-4aad-9e7a-9a672c30f1f1}" ID="201" /> <ProjectType>CSharp</ProjectType> <SortOrder>360</SortOrder> <DefaultName>LightSpeedModel.lsmodel</DefaultName> <NumberOfParentCategoriesToRollUp>2</NumberOfParentCategoriesToRollUp> </TemplateData> <TemplateContent> <ProjectItem ReplaceParameters="true" TargetFileName="$fileinputname$.lsmodel">lsmodel.lsmodel</ProjectItem> <ProjectItem TargetFileName="$fileinputname$.lsmodel.diagram">lsmodel.diagram</ProjectItem> </TemplateContent> <WizardExtension> <Assembly>Microsoft.VSDesigner, Version=9.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly> <FullClassName>Microsoft.VSDesigner.ProjectWizard.ItemPropertyWizard</FullClassName> </WizardExtension> </VSTemplate>
and put it back to the zip-file and refresh ??? with "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com" /setup"
but I still cannot choose the lsmodel !
|
|
|
This is my CSharp.vstemplate:
CSharp
360
LightSpeedModel.lsmodel
2
lsmodel.lsmodel
lsmodel.diagram
Microsoft.VSDesigner, Version=9.0.0.0, Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a
Microsoft.VSDesigner.ProjectWizard.ItemPropertyWizard
(CSharp.vstemplate is located in: %ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Data\1031\LightSpeedModel.zip)
Save the file CSharp.vstemplate as a UTF-8 encoded text file (I used notepad) and put it in the zip file. Then run 'devenv.EXE /setup' to force VS to recreate the item templates cache (http://msdn.microsoft.com/en-us/library/ex6a2fad(VS.80).aspx)
Frankly I don't know exactly why this worked for me. Maybe it was an issue with the original msi-install and this whole hocus pocus with the CSharp.vstemplate file and the devenv command line switch did only recreate the resource metadata from all available VSPackages, fixing some broken things. Give it a try.
|
|
|
Thanks for the help, maro158. We're going to try to get a German virtual machine set up and see if we can sort this out properly, but in the meantime we really appreciate you sharing your template. Would it be possible for you to post it as an attachment via the Options tab? (The forums software tends to mangle XML included in posts.) Thanks! Harald, can you just confirm that you copied the zip file to CSharp\Data\1031 before running devenv /setup or devenv /installvstemplates? And still no joy? |
|
|
thanks, it works :-) the problem was the refresh. I refresh via DOS-command and then VS starts but it did not refresh the cache. As I execute the command from "Start-ausfuehren" it works ! :-))
|
|
|
yes, I copied the file after editing in the zip file in CSharp\Data\1031. the file was also UTF-8. My "last version": <VSTemplate Version="3.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> ( The first 3 Bytes is for UTF-8 ). The problem was the my refresh-cmd was wrong. I tried from the command-line: C:\Dokumente und Einstellungen\haribo>"%ProgramFiles%\Microsoft Visual Studio 9. 0\Common7\IDE\devenv.com" /setup"
and the cache was never refreshed. In the MS link from maro158 I read that VS should not start at refresh ... Thanks ! |
|
|
Harald, I'm glad you worked it out. It seems that when you execute devenv /setup from the command line prompt devenv.com gets executed, which in turn starts devenv.exe. If you however run the same command from the run command window (WIN/start+R) devenv.exe is executed without the help of devenv.com (see Coverett's comment here: http://blogs.msdn.com/oldnewthing/archive/2008/03/24/8332730.aspx). Both executables have the /setup switch, but devenv.com simply passes the switch to devenv.exe when creating the process. I do not know where the different behaviour comes from, but I can confirm that VS 2008 crashes sometimes when started over devenv.com (maybe leaving the item template cache in an inconsistent state). But you know the german saying "Ende gut, alles gut"... |
|
|
Ivan, I'm not convinced that the template is the culprit. Here's what I did some moments ago, I just wrote down the steps of the workaround:
CLEANUP (needed only if LSE was previously installed on the system):
FRESH INSTALL
In the end, it seems that it's all about the installation folder for the LightSpeedModel.zip. Harald posted the modified template already, so I'll skip it here, but again - it looks like it's not the template. |
|
|
@maro: thanks ! It works very fine! |
|