簡體   English   中英

Silverlight 4單元測試

[英]Silverlight 4 Unit Testing

我已經在2010年4月安裝了Silverlight 4 Toolkit,並安裝了VS 2010 RTM,但未安裝Silverlight 4單元測試項目模板。

此版本默認情況下嗎? 如果是這樣,如何使用SL4單元測試?

謝謝。

解決方案:Silverlight 4 Toolkit安裝程序將SilverLight單元測試的項目模板和項目模板放在c:/ program files / microsoft visual studio 10.0 / common7 / ide中,無論您的實際VS2010安裝根目錄如何。

結果是,如果您的VS2010安裝未使用默認的c:/程序文件/ 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選項卡中看到“ Silverlight單元測試應用程序”。

希望這可以幫助,

您還安裝了Silverlight 4工具嗎? 這不包括在VS 2010 RTM中。

我的安裝順序:-

在模板中,我看到了“ Silverlight單元測試應用程序”

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM