silverlight   发布时间:2022-05-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Silverlight 4单元测试大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我已经安装了Silverlight 4 Toolkit 2010年4月并且安装了VS 2010 RTM,但未安装Silverlight 4 Unit Test Project模板. 这个版本是默认的吗?如果是这样,我该如何使用SL4单元测试? 谢谢. 解: Silverlight 4 Toolkit安装程序为SilverLight Unit Test放置了项目模板和项目模板 在c:/ progra
我已经安装了Silverlight 4 Toolkit 2010年4月并且安装了VS 2010 RTM,但未安装Silverlight 4 Unit Test Project模板.

这个版本是认的吗?如果是这样,我该如何使用SL4单元测试?

谢谢.

@L_618_1@

解:
Silverlight 4 Toolkit安装程序为SilverLight Unit Test放置了项目模板和项目模板
在c:/ program files / microsoft visual studio 10.0 / common7 / ide中,无论你的实际VS2010安装root如何.

结果是,如果您的VS2010安装没有使用认的c:/ program files / 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单元测试应用程序”
“已安装的模板”部分的?Lang?/ Silverlight选项卡.

希望这可以帮助,

大佬总结

以上是大佬教程为你收集整理的Silverlight 4单元测试全部内容,希望文章能够帮你解决Silverlight 4单元测试所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。