Hi, I just learned about O2 platform and I'm very excited about thinking that I could possibly do C# interactive development within Visual Studio.
This is something I've been dreaming about for a long time (I have background in CommonLisp where interactive development is the norm)
I downloaded the VS plugin but there are very little documentation to figure out how to use.
My questions are below.
1. Can I intereactively develop the current solution file I loaded into Visual Studio from C# Repl?
2. If so, changing source code without stopping the running instance will dynamically compile?
3. WPF is my choice of desktop UI. Are there some support for WPF? (It seems like WinForm is the default)
4. Is it possible to show us some examples?
5. If above answers to above questions are no, is it on the roadmap for the near future?
Thank you very much.
--
You received this message because you are subscribed to the Google Groups "O2 Platform" group.
To post to this group, send email to o2-pl...@owasp.org.
Visit this group at http://groups.google.com/a/owasp.org/group/o2-platform/.
이 이메일에는 바이러스와 맬웨어가 없습니다. avast! 안티바이러스 보호가 활성화된 상태이기 때문입니다. |
Hi, Dinis,Thanks for the quick reply.There are couple of things I want to do from the Q2 REPL.1. Dynamically execute a code written from Visual Studio. (Sure, it has to be compiled first)For a simplified example,<From Visual Stuido>public class Person{public string Name { get; set; }}===========================<And from O2 REPL>Person person = new Person { Name = "foo" };Console.WriteLine(person.Name);
2. Dynamically compile methods of a running instance without stop->edit->compile->run.For an example, if a method dynamically recompiled while an instance is running and the method is called again after the recompile, it calls the new method.
(It will probably require DLL swapping on the fly, or just updating the function entry point will suffice)
The productivity of development will go up dramatically without stop->edit->compile->run cycle.
I’m used to using #1, #2 from developing CommonLisp and I was wondering if it’s possible on C# using O2 Platform also.I’m kind of lead to believe it’s possible. ^^
If it isn’t possible currently, how difficult would it be to support them? I’ll be super excited if is possible.
In those cases you either add the O2 APIs to the main app, or run the tests from UnitTests.
I'll try to send an example later today.
Yes that would be very annoying :)
Look at the source code of the script_IE extension method (or the script_IE_TeamMentor (not sure of that is the correct class name, but it should be similar))
I think the solution you're looking for is in there (basically you add a number of extra references to the REPL (as it loads))
BTW, have you seen the auto-backup of scripts? That is also a nice way to restore the last executed script.
Here is the code for script_IE : https://github.com/o2platform/FluentSharp_Fork.WatiN/blob/5c574ab983ad6671a42f9d4db85ea5007def744a/FluentSharp.WatiN.NUnit/ExtensionMethods/Watin_REPL_ExtensionMethods.cs#L16
Is that what you are trying to do?
No worries, and Thx for the great questions
BTW, have you tried the FluentSharp reflection APIs?