Though TPL is widely accepted as a feature of C# 4.0 , but heard that it is not supported on SL4, but SL5.
Could not find any solid evidence of it.
So why the do MicroSoft implemented a feature in WPF but not Silverlight, though both sl4 and wpf4 released around same time.
If you need TCL in Silverlight 4 you can add the "Microsoft.Bcl" and "Microsoft.Bcl.Async" nuGet packages to your project.
They implement part of what TCL delivers in .net.
More info can be found here
Don't forget you have to use the TaskEx class instead.
Hoped it helped.
Related
I'm trying to automate an application I developed in C# (WPF) using Robot Framework.
I already explored a bunch of alternatives:
White Library
https://github.com/Omenia/robotframework-whitelibrary
https://github.com/TestStack/White
Doesn't seem to be working.
AutoItLibrary:
https://pypi.org/project/robotframework-autoitlibrary/
https://github.com/HW71/AutoItLibrary
https://github.com/qitaos/robotframework-autoitlibrary
Doesn't work for WPF C# applications - Doesn't detect components
Sikuli
https://github.com/rainmanwy/robotframework-SikuliLibrary
http://rainmanwy.github.io/robotframework-SikuliLibrary/
Image detection doesn't work very well in WPF C# applications.
Has anyone been able to automate WPF C# applications using Robot Framework IDE?
Regards
We just released first stable version of WhiteLibrary. It should do the job.
https://github.com/Omenia/robotframework-whitelibrary
pip install --upgrade robotframework-whitelibrary
Unfortunately, WhiteLibrary is build on the White automation framework which has been deprecated since December 11, 2019. While WhiteLibrary itself is not officially deprecated, the last release is also from 2019.
There appears to be a newer framework called FlaUI, which is wrapped by RobotFramework-FlaUI. This project is still under active development currently and likely a more future-proof choice than WhiteLibrary.
I just found out that, Sonar does not support Silverlight 5, but it does support Silverlight 4. I thought, if I can take a look at Sl4 plugin code and I might able to add Silverlight 5 support. I was going through plugin library but I can't find where is the SL4 plug in code. Could someone point me to where is it hosted and any direction in adding support for SL5. If the work is already in progress, how do I go about help on this project.
Thanks a lot.
The support of Silverlight is implemented in the .Net Core Plugin of the .Net & C# Plugins Ecosystem.
Adding support for SL5 should be quite easy and should be only located on the DotNetConstants class.
If you manage to do what you want, feel free to open a pull request on the projet! :-)
I would like to add some scripting support to a Silverlight 4 application that I'm working on. I have the latest stable releases of both IronRuby and IronPython installed on my machine with Visual Studio 2010. I looked at some samples of using the ScriptEngine class with both IronRuby and IronPython. I even got it to work in a small Windows Forms app to make sure my code works. However, I can't seem to Add Reference for the required Assemblies/DLLs to my Silverlight 4 application.
Here's my ScriptEngine code:
ScriptEngine engine = Ruby.CreateEngine();
engine.Runtime.Globals.SetVariable("MainPage", this);
string code = "MainPage.txtTitle.Text = \"Hello from IronRuby!\"";
engine.Execute(code);
And, here's my using statements that it requires:
using IronRuby;
using Microsoft.Scripting.Hosting;
When I try to Add Reference to the following Assemblies/DLLs from the IronRuby 1.0 release, Visual Studio 2010 doesn't let me add them and provides no exception message as to why. As a result I am unable to compile the solution.
IronRuby.dll
IronRuby.Libraries.dll
IronRuby.Libraries.YAML.dll
Microsoft.Dynamic.dll
Microsoft.Scripting.Debugging.dll
Microsoft.Scripting.dll
I assume that the reason Visual Studio 2010 isn't letting me add the Assemblies/DLLs is because they are compiled for .NET and not Silverlight.
Does anyone know where I can get Silverlight 4 versions of those assemblies or exactly what I'm doing incorrectly?
Any help would be appreciated. Thanks!
The Silverlight versions for both IronRuby 1.0 and IronPython 1.0 are hidden in the IronRuby 1.0 for .NET 2.0 SP1 (Zip archive) downloadable from http://ironruby.codeplex.com/releases. In the zip look for silverlight\bin.
The IronRuby 1.1 Silverlight release is also available. IronPython 1.1 for Silverlight however is nowhere to be found. The DLR isn't getting the love from Microsoft it deserves, little documentation, binaries are very hard to find, the future for IronRuby and IronPython doesn't look bright...
Just a note to Koen's answer:
The IronPython\Silverlight\bin .dlls from IronPython 2.6.x are .NET 3.5 binaries (work fine in Silverlight 4). The .NET 4 binaries for Silverlight 4 will be available with IronPython 2.7 (currently in alpha).
I was looking for some kind of scripting engine compatible with Silverlight, and after hours of research, I've found one. I had not tested yet but I just discovered a project called PaxScript.net that has support for Silverlight 3/4/5. According to the author, you can script using VB.NET, C# and Delphi.NET. It does generate byte-code. I don't know why this project is not known, maybe lack of "disclosure".
Having never written a production quality Silverlight app, I am looking to find a quality open source reference application for Silverlight 3.0 (Silverlight 4.0 is no good as I have VS2008) to help learn Silverlight.
Ideally I'd like to see:
a line of business application, in the client-server tradition.
SQL Server back end
no use of 3rd party libraries like PRISM or CSLA as I would like to see how the core Silverlight technologies work.
I realise there are plenty of open source projects on Codeplex, but struggled to find any classic line of business apps there.
This is a really good one:
http://timecard.codeplex.com/
The following does use Prism, but you can learn a lot from it. It even shows localization:
http://happynet.codeplex.com/
In all honesty, get yourself upgraded to VS 2010. If you are serious about becoming a professional in Silverlight development, version 4 has the most bang-for-your-buck.
Not all the newer technologies are supported for Silverlight 3 and all the latest cool tutorials and project examples tend to be in VS2010/SL4.
You also should not ignore patterns like MVVM and libraries like Prism & MEF as they are rapidly becoming commonplace for Silverlight projects. There is more danger of you getting into Win-forms-style bad habits if you use a Win-forms style approach to Silverlight at first.
Here is a simple explanation of MVVM for Silverlight:
http://openlightgroup.net/Blog/tabid/58/EntryId/89/Silverlight-View-Model-Style-An-Overly-Simplified-Explanation.aspx
These videos are a good introduction to creating/understanding Prism-based projects, specifically for Silverlight:
http://channel9.msdn.com/posts/mtaulty/Prism--Silverlight-Part-1-Taking-Sketched-Code-Towards-Unity/
It includes him building an Outlook-style application using prism (with full source provided).
The codeplex project, full source and documents etc, for Prism and soon MEF is here:
http://compositewpf.codeplex.com/wikipage?title=Getting%20Started&referringTitle=Home
Prism was created by Microsoft and will soon have a final release of version 4 (including MEF).
We're in the process of creating a Silverlight project and wondered how we could validate/test if it would run on Moonlight. From regular .Net to Mono there is the Mono Migration Analyzer which generates a report on which methods are missing in Mono to provide full support.
Are there any similar tools from Silverlight to Moonlight?
As I know there aren't any and event wouldn't be by my opinion.
The situation with moonlight is little bit more complicated.
With mono you're checking just clr methods towards standard. That's pretty easy.
Moonlight 1.0 is only stable version and should be 100% compatible with Silverlight, XAML is covered, but there are of course some bugs, the only comparision is on this page: http://go-mono.com/moonlight/MoonlightStatus.aspx.
Moonlight 2.0 is in beta state, there is clr part that can be checked with moma towards the mono version it's based on, cause the binaries are only stripped by mono linker. The API will be quite near 100% if not fully compleated. The rest is same like with Moonlight 1.0.
The status page is here: http://go-mono.com/moonlight/MoonlightStatus.aspx?v=2
Like Yakeen said, 2.0 is in beta. The best way to test is going to be installing moonlight on a test box and manually testing your site.
If it were me, I'd create a Virtual Machine with some flavor of Linux+Firefox and install the beta from their download site