Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


mkdawson
2011-09-24T17:58:14Z
I'd really like to see a .NET script task (C# for me, but VB and others also). I recently came across the csscript engine (www.csscript.net) for c# scripts, but would like something integrated in VC rather than command line.

Similar to the powershell task, enter a script file path (.cs, .vb, etc), or enter the code in an editor (the task compiles before execution). Picking the framework version and adding references would be nice too.
Sponsor
Forum information
Support
2011-09-24T17:58:55Z
We are actually working on this right now.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mkdawson
2011-09-24T18:53:49Z
Originally Posted by: Support 

We are actually working on this right now.



Awesome! Keep up the good work.
ErikC
2011-09-25T05:50:42Z
Good feature request!

Regards,
Erik
Uses Visualcron since 2006.
Support
2011-10-10T08:25:02Z
If you want, you can test this feature already now:

http://www.visualcron.co....aspx?g=posts&t=2013 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mkdawson
2011-10-12T21:01:45Z
Originally Posted by: Support 

If you want, you can test this feature already now:

http://www.visualcron.co....aspx?g=posts&t=2013 



Nice! Checking it out this weekend.
mkdawson
2011-10-23T17:37:58Z
I finally got the chance to work with it some. Very nice for a first version. The compile and run buttons are great for basic debugging.

I did a two tests with the default sample script.

  • I created another SayHello() method in the same class with a differnt signature (passed a string) and returned a different result and refreshed. Each are a separate pick and they work fine.
  • I created a second class also with SayHello() with a 3rd return value and refreshed. All SayHello() methods appear in the picker. Of the two that have the same signature (no param passed), only the first instance is called from either pick. I see this is true when I switch the order of the classes, the first one is called from either pick. Feature request for this below


Here are a couple of enhancements I'd like to suggest.

  • When there's a compiler error, show the line # (if possible)
  • Basic syntax hightlighting and code completion in the editor would be awesome. Not expecting full blown intellisense.
  • Ability to reference an assembly(s) not in GAC (pick a dll file).
  • Along with coding right in the dialog, a nice option would be to pick an external script file. This would let us write reusable libraries and centrally store them.
  • In the method picker, show class.method() to allow for multiple classes that may have a method with the same signature.


All in all, a good first round. Thanks for adding this!
mkdawson
2011-10-23T17:54:20Z
Originally Posted by: mkdawson 


Along with coding right in the dialog, a nice option would be to pick an external script file. This would let us write reusable libraries and centrally store them.



As I clicked Post, I had another thought about script reusability along the lines of managing Connections, Notifications, Conditions, Credentials, etc, with similar management forms for reusable scripts (.NET, powershell, vb, etc). Just thinkin' out loud here.
Scroll to Top