VS 2013 Support

Sep 18, 2013 at 2:44 PM
Any idea when / if CUITe will be upgraded to work with Visual Studio 2013?
Dec 12, 2013 at 2:28 PM
Just following on to this post to find out if anyone is using CUITe 2012 with a 2013 instance of VS. We currently are running tests in VS2010 and are considering an upgrade to VS2013 next year.

Thanks

Jeff
Coordinator
Feb 2, 2014 at 7:39 AM
Edited Feb 2, 2014 at 7:40 AM
Hi guys,

I just checked in some code to support running CUITe tests using .net 4 and Visual Studio 2013.

However, it does not have Silverlight support as the UI test plugin has not been created\released yet.
See Microsoft Visual Studio UI Test Plugin for Silverlight for more information.

You will have to get the latest source code, build it, and reference the generated CUITe.dll.

Let me know if you encounter any issues.

Changeset 32090
added support for .net 4 for Visual Studio 2013 (but without silverlight support)
Feb 4, 2014 at 8:52 PM
Edited Feb 4, 2014 at 8:53 PM
Thanks icnocop! This was just in time for me as I was auto upgraded to 2013 overnight!

However, I have run into a few issues. I tried compiling this solution (and the previous ones). It looks like I am missing Silverlight and I ended up with 45 errors.

I made the following change to build.cmd
VisualStudioCmd=%ProgramFilesDir%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
I ended up with 1 error & 5 warnings.

Is there any way we could get a precompiled version of this?
Coordinator
Feb 5, 2014 at 7:48 AM
Edited Feb 5, 2014 at 7:58 AM
Hi.

What errors and warnings do you get and how are you running build.cmd?

I believe the Silverlight 5 SDK is required for Silverlight support.

I just checked in some missing project files for .net v4 for visual studio 2013, sorry about that.

I also updated build.cmd as you suggested, and when I run it as follows, I get no errors:
build.cmd /p:Configuration=Release /p:RunTests=false
Thank you.
Feb 5, 2014 at 3:21 PM
Edited Feb 5, 2014 at 3:27 PM
Thanks icnocop for taking a look at this so quickly!

I downloaded the latest source & executed in an admin command prompt and I am back up to 45 errors and 3 warnings.

One of the errors I noticed in the build output was
...
(ResolveAssemblyReferences target) ->
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3245: Could not resolve this reference. Could not locate
the assembly "Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArc
hitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [c:\Users\zzzzz\Downloads\cuite-32127\CUITe\CUITe.csproj]
...
Should that be 12.0.0.0 by any chance?

Complete output from the build is here
I believe the Silverlight 5 SDK is required for Silverlight support.
According to this link, silverlight 5 SDK is installed along with VS2013. However when I go and search under references, the only thing I find is "Microsoft.Expression.SilverlightPlatform". Just to be sure I downloaded the SDK installer and reran it & it did ask me to uninstall/repair. I uninstalled & reinstalled with no change in build output.
Coordinator
Feb 5, 2014 at 4:17 PM
Do you have Visual Studio 2010 installed?

Do you have Visual Studio 2010 Feature Pack 2 installed?

build.cmd will try to build all the projects and expects Visual Studio 2010 and Feature Pack 2, Visual Studio 2012 and the Visual Studio UI Test Plugin for Silverlight, and Visual Studio 2013 to be installed.

Thank you.
Feb 5, 2014 at 5:04 PM
Edited Feb 5, 2014 at 5:18 PM
icnocop wrote:
build.cmd will try to build all the projects and expects Visual Studio 2010 and Feature Pack 2, Visual Studio 2012 and the Visual Studio UI Test Plugin for Silverlight, and Visual Studio 2013 to be installed.
I do have 2010, but I no longer have 2012 installed.

Is there a workaround for this?

edit: Reinstalled Feature Pack 2 and the errors have gone down, I now have 745 Warnings & 1 error.

Updated build.cmd output

I now have in release:
   86,528 CUITe.dll
  488,960 CUITe.pdb
   45,858 CUITe.XML
Coordinator
Feb 5, 2014 at 6:47 PM
From the build.cmd output, it seems you are missing MSBuildCommunityTasks.
Feb 5, 2014 at 8:58 PM
Thanks icnocop for taking the time to look through & bearing with my lack of knowledge!

I installed MSBuildCommunityTasks and then next, Silverlight5 Tools after digging through the output and some googling.
I am at a point now where "CUITe for .NET v4 (VS2010).zip" is now created, but beyond that I am running into issues as (I think) I no longer have VS2012.

it keeps looking for Microsoft.VisualStudio.TestTools.UITest.Extension.(winmd|dll|exe) in various folder, but not finding it

I am now at 7 warnings & 389 errors with this output.txt

Just to keep a running tally of what I've done today (in case it helps someone else who is a newbie like me)
I have installed the following packages:
  • Silverlight5_Tools.exe
  • MSBuild.Community.Tasks.v1.4.0.65.msi
  • en_visual_studio_2010_fp2_x86_604352.msi
  • silverlight_sdk.exe
Coordinator
Feb 5, 2014 at 9:21 PM
c:\Users\zzzzz\Downloads\cuite-32127\TestSilverlightApplication (SL4)\TestSilverlightApplication.csproj(167,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Please try downloading and installing the Silverlight 4 SDK.
c:\Users\zzzzz\Downloads\cuite-32127\CUITe\Browsers\InternetExplorer.cs(1,17): error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [c:\Users\zzzzz\Downloads\cuite-32127\CUITe (NET4)\CUITe.csproj]
If you don't need Visual Studio 2012 support, you can delete or comment out the sections in build.proj that build those projects (ex. "CUITe (NET4).sln").

Let me know if you have any more questions.

Thank you.
Feb 5, 2014 at 9:50 PM
Thank you so very much icnocop!

I finally have a working project again!
Feb 17, 2014 at 3:15 PM
We do have a scenario where we would like to use our existing CUITe UI tests on vs 2013. Its a Silverlight 5 application and looks like UI test extension is no more supported in vs 2013. Is there any way around to make it work. ?? please suggest