This blog site is an opportunity for me to publish my thoughts on the state of the software industry and things in general.
I am an accomplished expert in business process and robotic process automation (RPA), document management, electronic forms, automated document distribution, multi-platform software development and system architecture and integration.
Wednesday, February 14, 2018
Dynamic DotNet Scripting for VB and C# - DotNetScript40
This DotNet Scripting project for VB and C# was Forked from NScript project on CodeProject and Compiled Under .Net 4.0 This scripting framework is a nice way to create dynamic VB or C# scripts that can be run as Console apps and integrated with other applications.
The project code has been renamed to DotNetScript40 and has been compiled under .Net 4.0, however I believe the software also has a .Net 2.0 dependency for use of the old VSA scripting DLL from .Net 2.0.
The DotNetScript40 solution has three projects:
DotNetScript40.exe - a C# console application for running .CS/.NCS scripts or .VB/.NVB scripts.
DotNetScriptW40.exe - a C# windows application for running .CS/.NCS scripts or .VB/.NVB scripts.
DotNetScriptLib40.DLL - a C# class library for running .CS/.NCS scripts or .VB/.NVB scripts.
DotNetScript40 and DotNetScriptW40 are very much similar to each other; the former can be used to run scripts that can output to console. DotNetScript40 shows error messages in console where as DotNetScriptW40 shows error messages using message boxes. It is DotNScriptW40 which can be associated with file extensions. Since there is lot of code that is shared by the two executables the common code is compiled in DotNetScriptLib40 and both the executables refer to this class library.