Giải pháp: The Silverli Ght 4 Bộ công cụ cài đặt đặt các mẫu mục và mẫu dự án cho SilverLight Unit Test trong c:/program files/microsoft visual studio 10.0/common7/ide, bất kể gốc cài đặt VS2010 thực tế của bạn.
Bản cập nhật là nếu cài đặt VS2010 của bạn không sử dụng tệp c:/program mặc định/microsoft visual studio 10.0/..., mẫu dự án và mục sẽ nằm sai vị trí sau khi cài đặt SL4.
Việc sửa chữa sẽ là:
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
Bây giờ, khi bạn mở một dự án mới trong VS2010, bạn sẽ thấy các "Đơn vị Silverlight thử nghiệm ứng dụng" trong Lang/tab Silverlight của "cài đặt? Mẫu ".
Hy vọng điều này sẽ giúp,
Nguồn
2011-07-14 21:01:23
Một trường hợp phổ biến: 64 bit OS ... 'Program Files (x86)' vs 'Program Files'. – jv42
Xin chào ... ý của bạn là gì với "Đường dẫn cài đặt"? – NestorArturo
"devenv/installvstemplates" là phần quan trọng mà tôi đã bỏ lỡ. Cảm ơn. –