The Silverli ght 4 Toolkit установил шаблоны элементов и шаблоны проектов для тестирования модуля SilverLight в c:/program files/microsoft visual studio 10.0/common7/ide, независимо от фактического установочного корня VS2010.
Результат заключается в том, что если ваша установка VS2010 не использовала файлы по умолчанию c:/program/microsoft visual studio 10.0/..., , то шаблоны проектов и элементов были бы не в том месте после установки SL4.
Исправление будет:
1) Copy the corresponding .zip files
from c:\program files\...\common7\ide\...
to ?your installpath?\common7\ide\...
Silverlight Unit Test Framework has templates for CSharp and VisualBasic.
For example :
common7\ide\itemtemplates\CSharp\silverlight\1033\Silverlight Unit Test Class.zip
common7\ide\projecttemplates\CSharp\silverlight\1033\Silverlight Unit Test Project.zip
2) Use the VS command prompt to install the templates with the command :
devenv /installvstemplates
Теперь, когда вы открываете новый проект в VS2010, вы должны увидеть "Silverlight Unit Test приложение" в Ланг/Silverlight вкладке «Installed? Шаблоны ".
Надеюсь, что это поможет,
Один общий случай: 64 бит OS ... 'Program Files (x86)' vs 'Program Files'. – jv42
Привет ... что вы имеете в виду под «Your installpath»? – NestorArturo
«devenv/installvstemplates» были ключевой частью, которую мне не хватало. Благодарю. –