huangyingwen / retlang

Automatically exported from code.google.com/p/retlang
0 stars 0 forks source link

Retlang doesn't compile in Silverlight environment out of the box #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. add a new Silverlight library project named Retlang.SL_2008.csproj to 
Retlang_2008.sln
2. recreate the same folder structure in the new projects as in 
Retlang_2008.csproj
3. add as links all files from Retlang_2008.csproj (except FormFiber.cs) 
to the corresponding folders in the new project
4. compile the new project 

What is the expected output? What do you see instead?
Retlang.SL_2008.csproj doesn't compile because there is no SortedList<> 
and Stopwatch classes in Silverlight

What version of the product are you using? On what operating system?
0.4.2 and 0.4.3. The later introduces another compilation error in 
ThreadFiber but the patch submitted in the issue #6 takes care of it.

Please provide any additional information below.
As a temporary workaround I added to the SL project the first SL 
implementation of Stopwatch I saw on the Internet:
http://blog.tiaan.com/link/2009/02/03/stopwatch-silverlight

and there is at least one more available:
http://www.wiredprairie.us/blog/index.php/archives/723

Then, just to make sure everything else works, I defined sorted list as 

public class SortedList<TKey, TValue> : Dictionary<TKey, TValue>
{}

Which did the trick and the new project compiled and worked in SL

So I wonder if it's possible to add a Silverlight project to the retlang 
code base? if i can help with anything please let me know.

Original issue reported on code.google.com by mdrac...@gmail.com on 26 Dec 2009 at 3:27

GoogleCodeExporter commented 8 years ago
Duplicate of issue #6

Original comment by graham.m...@gmail.com on 28 May 2010 at 7:12