├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── Source ├── .NET Core │ ├── CSScriptLib │ │ ├── CSScriptLib.sln │ │ └── src │ │ │ ├── CSScriptLib.Client │ │ │ ├── CSScriptLib.Client.csproj │ │ │ ├── Program.cs │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ └── Test.cs │ │ │ ├── CSScriptLib.Client461 │ │ │ ├── CSScriptLib.Client461.csproj │ │ │ ├── Program.cs │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ └── Test.cs │ │ │ └── CSScriptLib │ │ │ ├── AppDomain.cs │ │ │ ├── AssemblyResolver.cs │ │ │ ├── CSScript.cs │ │ │ ├── CSScriptLib.Eval.Roslyn.cs │ │ │ ├── CSScriptLib.csproj │ │ │ ├── Extensions.cs │ │ │ ├── IEvaluator.cs │ │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ │ ├── csparser.cs │ │ │ ├── fileparser.cs │ │ │ └── output │ │ │ └── agregate.cmd │ └── prepare_publish_cs-script.core.cmd ├── .gitignore ├── AssemblyExecutor.cs ├── AssemblyResolver.cs ├── Build │ └── build.cmd ├── CS-S.AsmInfo.cs ├── CS-Script │ ├── App.config │ ├── CS-Script.csproj │ ├── CS-Script.sln │ ├── CSScript.Properties.Resources.resources │ ├── Program.cs │ └── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings ├── CSI │ └── Src │ │ ├── console.cs │ │ ├── csi.cs │ │ ├── csigui.cs │ │ ├── interpreter.cs │ │ └── prepro.cs ├── CSSPostSharp.cs ├── CSSRoslynProvider │ ├── AssemblyInfo.cs │ ├── CSSRoslynProvider.cs │ ├── CSSRoslynProvider.csproj │ ├── CSSRoslynProvider.dll │ ├── CSSRoslynProvider.sln │ ├── Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll │ ├── README.md │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── RoslynCodeDomProvider.7z │ └── deployment_model.png ├── CSScriptLibrary.shfbproj ├── CSScriptLibrary │ ├── AsmHelper.cs │ ├── CSScriptLib.Eval.CodeDom.cs │ ├── CSScriptLib.Eval.Mono.cs │ ├── CSScriptLib.Eval.Roslyn.cs │ ├── CSScriptLib.cs │ ├── CSScriptLibrary.csproj │ ├── CSScriptLibrary.v4.0.csproj │ ├── CSScriptLibrary.v4.0.sln │ ├── Crc32.cs │ ├── DebugScript.csproj │ ├── DebugScript.sln │ ├── Evaluator.Extensions.Async.cs │ ├── Evaluator.Extensions.Remote.cs │ ├── IEvaluator.cs │ ├── ObjectCaster.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── sgKey.snk ├── ChooseDefaultProgram │ ├── AssemblyInfo.cs │ ├── CSScript.Resources.resources │ ├── ChooseDefaultProgram.cs │ ├── ChooseDefaultProgram.csproj │ ├── ChooseDefaultProgram.sln │ ├── Lib │ │ └── PsExec.exe │ ├── Resources.Designer.cs │ ├── Resources.resx │ └── app.manifest ├── ConfigConsole │ ├── ConfigConsole.cs │ ├── SplashScreen.cs │ ├── build.cmd │ ├── buildCheck.cs │ ├── css_logo.ico │ ├── css_logo_256x256.png │ ├── donate.png │ ├── images.cs │ ├── searchDirs.cs │ ├── shellExt.cs │ └── shellExt.net1.cs ├── Exceptions.cs ├── ExecuteOptions.cs ├── GACHelper.cs ├── GacScriptTests.cs ├── HelpProvider.cs ├── Logo │ └── css_logo.ico ├── Mono.CSharp.dll ├── Mono.Posix.dll ├── NAnt.CSScript │ ├── AssemblyInfo.cs │ ├── CSScript.Tasks.cs │ ├── CSScript.Tasks.csproj │ └── CSScript.Tasks.sln ├── NuGet.cs ├── NuGet │ ├── CS-Script.RoslynProvider.nuspec │ ├── CS-Script.bin.nuspec │ ├── CS-Script.lib.Roslyn.nuspec │ ├── CS-Script.lib.nuspec │ ├── CS-Script.nuspec │ └── content │ │ ├── net40 │ │ ├── Scripting.evaluator.cs │ │ └── Scripting.native.cs │ │ ├── net45 │ │ ├── Scripting.Extensions.cs │ │ ├── Scripting.evaluator.cs │ │ └── Scripting.native.cs │ │ ├── net46 │ │ ├── Scripting.Extensions.cs │ │ ├── Scripting.evaluator.cs │ │ ├── Scripting.native.Roslyn.cs │ │ └── Scripting.native.cs │ │ └── vb │ │ ├── Scripting.Extensions.dynamic.vb │ │ ├── Scripting.Extensions.vb │ │ ├── Scripting.evaluator.dynamic.vb │ │ ├── Scripting.evaluator.vb │ │ ├── Scripting.native.Roslyn.vb │ │ ├── Scripting.native.dynamic.vb │ │ └── Scripting.native.vb ├── Precompiler.cs ├── Project.cs ├── ReleaseNotes.txt ├── Roslyn.Scripting │ ├── Microsoft.CodeAnalysis.CSharp.Scripting.dll │ ├── Microsoft.CodeAnalysis.CSharp.dll │ ├── Microsoft.CodeAnalysis.Scripting.dll │ ├── Microsoft.CodeAnalysis.dll │ ├── Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll │ ├── SandCastleDependencies │ │ ├── System.Runtime.dll │ │ └── System.Runtime.xml │ ├── System.AppContext.dll │ ├── System.Collections.Immutable.dll │ ├── System.Console.dll │ ├── System.Diagnostics.FileVersionInfo.dll │ ├── System.Diagnostics.StackTrace.dll │ ├── System.IO.Compression.dll │ ├── System.IO.FileSystem.Primitives.dll │ ├── System.IO.FileSystem.dll │ ├── System.Reflection.Metadata.dll │ ├── System.Security.Cryptography.Algorithms.dll │ ├── System.Security.Cryptography.Encoding.dll │ ├── System.Security.Cryptography.Primitives.dll │ ├── System.Security.Cryptography.X509Certificates.dll │ ├── System.Text.Encoding.CodePages.dll │ ├── System.Threading.Thread.dll │ ├── System.ValueTuple.dll │ ├── System.Xml.ReaderWriter.dll │ ├── System.Xml.XPath.XDocument.dll │ ├── System.Xml.XPath.dll │ └── System.Xml.XmlDocument.dll ├── ScriptLauncherBuilder.cs ├── Settings.cs ├── SystemWideLock.cs ├── Tests │ ├── App.config │ ├── AutoClass.cs │ ├── CodeDOMEval.cs │ ├── CodeDom.cs │ ├── Common.cs │ ├── Eval.Async.Extensions.cs │ ├── Eval.Remote.Extensions.cs │ ├── Generic.cs │ ├── MonoEval.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RoslynEval.cs │ ├── Tests.csproj │ └── packages.config ├── Unix.FileMutex.cs ├── Utils.cs ├── VistaSecurity.cs ├── cscscript │ ├── App.ico │ ├── CSExecutionClient.cs │ ├── CSScriptLibrary.xml │ ├── DebugScript.csproj │ ├── DebugScript.sln │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── app.config │ ├── cscscript.csproj │ ├── cscscript.v4.0.csproj │ └── file.ico ├── csparser.cs ├── css.cs ├── css_config.default.xml ├── css_config │ ├── App.ico │ ├── AssemblyInfo.cs │ ├── Images │ │ └── splash.png │ ├── Program.cs │ ├── Properties │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── SplashForm.cs │ ├── SplashForm.resx │ ├── SplashScreen.resources │ ├── VistaSecurity.cs │ ├── css_config.cs │ ├── css_config.csproj │ ├── css_config.resx │ └── css_config.sln ├── csscript.cs ├── csscript.sln ├── cswscript │ ├── App.ico │ ├── CSExecutionClient.cs │ ├── Form1.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── app.config │ ├── cswscript.csproj │ ├── cswscript.v4.0.csproj │ └── file.ico ├── dbg.cs ├── dbg.res.cs ├── deployment │ ├── inc │ │ ├── ServiceStack.cs │ │ ├── WebApi.cs │ │ ├── fkill.cs │ │ ├── isadmin.cs │ │ ├── pkill.cs │ │ ├── runas.cs │ │ ├── webserver.cs │ │ ├── which.cs │ │ └── who.cs │ ├── lib │ │ ├── SMTPMailTo.cs │ │ ├── Script.cs │ │ ├── SimpleEncryption.cs │ │ ├── VSAddIn.cs │ │ ├── VSintegration.cs │ │ ├── WebScript.cs │ │ ├── asAdmin.cs │ │ ├── autoclass.cs │ │ ├── bug.cs │ │ ├── cache.cs │ │ ├── ccs2cs.cs │ │ ├── ccscompiler.cs │ │ ├── cfbuild.cs │ │ ├── clearTemp.cs │ │ ├── clearcache.cs │ │ ├── cmdShell.cs │ │ ├── code.cs │ │ ├── com.cs │ │ ├── config.cs │ │ ├── configFile.cs │ │ ├── createShortcut.cs │ │ ├── credentials.cs │ │ ├── css2ws.cs │ │ ├── cutfile.cs │ │ ├── debug#D.cs │ │ ├── debug2005Precompiler.cs │ │ ├── debugCLR.cs │ │ ├── debugVS10.0.cs │ │ ├── debugVS11.0.cs │ │ ├── debugVS12.0.cs │ │ ├── debugVS14.0.cs │ │ ├── debugVS15.0.cs │ │ ├── debugVS2019.cs │ │ ├── debugVS8.0.cs │ │ ├── debugVS9.0.cs │ │ ├── elevate.cs │ │ ├── encrypt.cs │ │ ├── feedback.cs │ │ ├── freestyle.cs │ │ ├── help.cs │ │ ├── isolate.cs │ │ ├── lib.cs │ │ ├── libhelp.cs │ │ ├── linq.includes.cs │ │ ├── lscache.cs │ │ ├── lsnuget.cs │ │ ├── netpath.cs │ │ ├── noCache.cs │ │ ├── nuget_update.cs │ │ ├── precompile.default.cs │ │ ├── precompile.part.cs │ │ ├── precompiler.cs │ │ ├── print.cs │ │ ├── reflect.cs │ │ ├── refreshVSProj.cs │ │ ├── res.cs │ │ ├── sample.cs │ │ ├── scramble.cs │ │ ├── shortname.cs │ │ ├── silverlight.cs │ │ ├── soapsuds.cs │ │ ├── startElevated.cs │ │ ├── update.cs │ │ ├── updatenugetexe.cs │ │ ├── ver.cs │ │ ├── verify.cs │ │ ├── verify2.cs │ │ ├── vista.cs │ │ ├── wpf.includes.cs │ │ ├── wsdl.cs │ │ ├── wsdl_t.cs │ │ └── wwf.includes.cs │ └── samples │ │ ├── Automation │ │ ├── App.cs │ │ └── Script.cs │ │ ├── Classless │ │ ├── Hostied script │ │ │ ├── ExecuteClasslessWithAlternativeCompiler.cs │ │ │ └── ExecuteClasslessWithDefaultCompiler.cs │ │ └── Standalone script │ │ │ └── HelloWorld.cs │ │ ├── Code.cs │ │ ├── ConfigFiles │ │ ├── Script.cs │ │ └── Script1.cs │ │ ├── ErrorLevelTester.cs │ │ ├── GetOptusUsage.cs │ │ ├── GoogleSearchService.cs │ │ ├── Hosting │ │ ├── Hello.cs │ │ ├── HostingScenarios.cs │ │ ├── Legacy Samples │ │ │ ├── CodeDOM │ │ │ │ ├── AppDomainExtensions.cs │ │ │ │ ├── Classless.cs │ │ │ │ ├── CompileErrors.cs │ │ │ │ ├── ConditionalCompilation.cs │ │ │ │ ├── CustomProbing.cs │ │ │ │ ├── Debugging.cs │ │ │ │ ├── DetectingScriptCodeCalls │ │ │ │ │ ├── Host.cs │ │ │ │ │ └── Script.cs │ │ │ │ ├── Eval.cs │ │ │ │ ├── Hello.cs │ │ │ │ ├── HostVBScript.cs │ │ │ │ ├── HostingSimplified │ │ │ │ │ ├── Host.cs │ │ │ │ │ └── Script.cs │ │ │ │ ├── HostingWithInterfaces │ │ │ │ │ ├── Host.cs │ │ │ │ │ └── Script.cs │ │ │ │ ├── InterfaceAlignment │ │ │ │ │ ├── ExtendingLife.cs │ │ │ │ │ ├── HelloScript.cs │ │ │ │ │ ├── Host.cs │ │ │ │ │ └── InterfaceAlignmentWithoutScripting.cs │ │ │ │ ├── LifetimeManagement.cs │ │ │ │ ├── LifetimeManagement2.cs │ │ │ │ ├── MethodSignatures.cs │ │ │ │ ├── Modifying script without restart │ │ │ │ │ ├── Host.cs │ │ │ │ │ └── Script.cs │ │ │ │ ├── Non C# scripts │ │ │ │ │ ├── HostVBScript.cs │ │ │ │ │ └── host.cs │ │ │ │ ├── NonC#CompilerInHostApp.cs │ │ │ │ ├── Older versions of CLR │ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ │ └── Host.cs │ │ │ │ ├── Performance.cs │ │ │ │ ├── Referencing │ │ │ │ │ ├── ExternalAsm.cs │ │ │ │ │ ├── Host.cs │ │ │ │ │ ├── Script.cs │ │ │ │ │ └── VS2008 project │ │ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ │ │ ├── Host.cs │ │ │ │ │ │ └── Script.cs │ │ │ │ ├── RuntimeErrors.cs │ │ │ │ ├── TypeSafety.cs │ │ │ │ ├── VS2008 project │ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ │ ├── Host.cs │ │ │ │ │ └── Script.cs │ │ │ │ ├── VS2010 project │ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ │ ├── Host.cs │ │ │ │ │ └── Script.cs │ │ │ │ └── VS2012 project │ │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ │ ├── Host.cs │ │ │ │ │ └── Script.cs │ │ │ └── CompilerAsService │ │ │ │ ├── Hello.cs │ │ │ │ ├── HostingScenarios.cs │ │ │ │ ├── MemoryManagement.cs │ │ │ │ └── Modifying script without restart │ │ │ │ ├── Host.cs │ │ │ │ ├── plugin.interface.cs │ │ │ │ ├── pluginA.cs │ │ │ │ └── pluginB.cs │ │ ├── Scripting.Extensions.cs │ │ ├── Scripting.evaluator.cs │ │ └── Scripting.native.cs │ │ ├── Macros │ │ ├── precompile.cs │ │ ├── script.cs │ │ └── script_simple.cs │ │ ├── NAnt │ │ ├── Script.Data.IO.cs │ │ ├── Script.cs │ │ └── ScriptWithError.cs │ │ ├── NonC#CompilerInHostApp.cs │ │ ├── PostSharp │ │ └── script.cs │ │ ├── Precompilers │ │ ├── AdvancedSamples │ │ │ ├── CPPHashDef.cs │ │ │ ├── Precompilers │ │ │ │ ├── Script.cs │ │ │ │ ├── auto_class.cs │ │ │ │ ├── auto_method.cs │ │ │ │ ├── decrypt.cs │ │ │ │ ├── dsl.cs │ │ │ │ └── hashdef.cs │ │ │ ├── Script.cs │ │ │ ├── Script.enc.cs │ │ │ ├── Script.encrypted.cs │ │ │ ├── classless.cs │ │ │ └── freestyle_dsl.cs │ │ ├── Script.cs │ │ ├── freestyle.cs │ │ └── nuget_update.cs │ │ ├── Progressbar.cs │ │ ├── REST │ │ ├── ServiceStack_Server.cs │ │ ├── WebAPI_Server.cs │ │ └── webapp.cs │ │ ├── ReflectScript.cs │ │ ├── Remoting │ │ ├── clientConsole.cs │ │ ├── clientForm.cs │ │ └── server.cs │ │ ├── Resources │ │ ├── Resources.resx │ │ ├── Script.cs │ │ └── res.cs │ │ ├── RuntimeInfo.cs │ │ ├── SMTPMailTo.cs │ │ ├── Sandboxing │ │ ├── Danger.cs │ │ ├── Host.cs │ │ ├── HostSimplified.cs │ │ └── NET4.0 │ │ │ ├── Host.cs │ │ │ ├── Host │ │ │ ├── AssemblyInfo.cs │ │ │ ├── ExpressionSerializer.cs │ │ │ ├── Host.cs │ │ │ └── UntrustedCode.cs │ │ │ └── UntrustedCode.cs │ │ ├── ScriptEE.cs │ │ ├── ScriptEncryption │ │ ├── CRC32.cs │ │ ├── Script.cs │ │ └── host.cs │ │ ├── SetEV.cs │ │ ├── SurrogateHostScript.cs │ │ ├── Vista │ │ ├── VistaUAC_code.cs │ │ ├── VistaUAC_command-line.cs │ │ └── VistaUAC_pre-script.cs │ │ ├── WCF │ │ ├── HelloService.cs │ │ ├── client.cs │ │ └── service.cs │ │ ├── WPF │ │ ├── DynamicWPF │ │ │ ├── Caliburn.App.cs │ │ │ ├── hello.cs │ │ │ └── hello.xaml │ │ └── hello.xaml.cs │ │ ├── WWF │ │ ├── HelloWorld.cs │ │ └── MsgBoxActivity.cs │ │ ├── WinForm.cs │ │ ├── code.Net_v4.5.cs │ │ ├── cutfile.cs │ │ ├── dbg.cs │ │ ├── exportData.cs │ │ ├── getUrl.cs │ │ ├── google.cs │ │ ├── googleWebService.cs │ │ ├── hello.cs │ │ ├── hello_auto.cs │ │ ├── importData.cs │ │ ├── importTickScript.cs │ │ ├── linq.cs │ │ ├── msxml.cs │ │ ├── nkill.cs │ │ ├── print.cs │ │ ├── printScreen.cs │ │ ├── runScript.cs │ │ ├── synTime.cs │ │ ├── sysFindConfig.cs │ │ ├── tick.cs │ │ └── unsafe_keyword.cs ├── extensions.cs ├── fileparser.cs ├── prebuild.cs ├── prebuild.exe ├── runasm32.cs └── wiki │ └── images │ ├── cscs_ver.png │ ├── css_logo_codeplex_256x256_2.png │ ├── shell_ext.png │ └── vs_nuget.gif ├── appveyor.yml ├── bin └── linux │ └── ubuntu │ ├── build │ ├── cs-script_3.27.5.0 │ │ ├── -update.cs │ │ ├── CSSRoslynProvider.dll │ │ └── cscs.exe │ ├── debian │ │ ├── README │ │ ├── changelog │ │ ├── changelog.template │ │ ├── compat │ │ ├── control │ │ ├── copyright │ │ ├── cs-script-docs.docs │ │ ├── cs-script.links │ │ ├── cs-script.substvars │ │ ├── debhelper-build-stamp │ │ ├── files │ │ ├── install │ │ ├── install.template │ │ ├── postinst │ │ ├── rules │ │ └── source │ │ │ └── format │ ├── prepare_package_sources.cs │ └── readme.md │ ├── cs-script_3.27.2.1.deb │ ├── cs-script_3.27.5.0_all.deb │ ├── cs-script_3.28.8.0_all.deb │ └── version.txt ├── docs ├── Donation.html ├── README.md ├── _config.yml ├── download.stats │ ├── css.npp.count.jpeg │ ├── daily_downloads.files │ │ ├── examples.css │ │ ├── jquery.js │ │ ├── jquery_002.js │ │ ├── jquery_003.js │ │ └── jquery_004.js │ └── daily_downloads.html ├── help-legacy │ ├── Adding_Searchdirs.html │ ├── Advanced_scripting.html │ ├── Advanced_scripting_tutorial.html │ ├── Alternative_Compilers.html │ ├── AppConfig.html │ ├── AppConfig_Tutorial.html │ ├── AutoClass.html │ ├── CF.html │ ├── CS-Script_on_Mono.html │ ├── CSI.html │ ├── CSScript.html │ ├── Classless.corrupted.html │ ├── Classless.html │ ├── ClasslessOverview.html │ ├── Command-line_Interface.html │ ├── Compatibility.corrupted.html │ ├── Compatibility.html │ ├── Compile.html │ ├── CompileAssembly.html │ ├── CompilerOptionsDirective.html │ ├── Complex_scripting.html │ ├── Config.html │ ├── ConfigUtils.html │ ├── Configuration.html │ ├── Copy of Config.html │ ├── Creating_shell_extension.html │ ├── Debugging.html │ ├── Deployment.html │ ├── Deployment_tutorial.html │ ├── Development_tools.html │ ├── Directives.html │ ├── Dynamic_assembly_loading.html │ ├── Embedded_Arguments.html │ ├── Environment.html │ ├── Extending_applications.html │ ├── Extending_scripting_system.html │ ├── Features.html │ ├── Feedback.html │ ├── Further_information.html │ ├── General_Concept.html │ ├── HTML Help Workshop.lnk │ ├── Hello_World.html │ ├── Image_processor.html │ ├── Images │ │ ├── AppSettings.PNG │ │ ├── CF1.PNG │ │ ├── CF2.PNG │ │ ├── CFMenu.PNG │ │ ├── CLRDebugger.PNG │ │ ├── CLRDebuggerMenu.PNG │ │ ├── CSI.png │ │ ├── CmdShellMenu.PNG │ │ ├── Copy of pre_post.PNG │ │ ├── DefaultExecutionModel.png │ │ ├── Linux.png │ │ ├── Mono.PNG │ │ ├── NPP.PNG │ │ ├── Printint_tutorial.PNG │ │ ├── SD.PNG │ │ ├── SDOpenMenu.PNG │ │ ├── ShellExt.PNG │ │ ├── ShellExt2.PNG │ │ ├── ShellExt3.PNG │ │ ├── SurrogateExecutionModel.png │ │ ├── Thumbs.db │ │ ├── TraceMonitor.PNG │ │ ├── VS10.0Debugger.PNG │ │ ├── VS10.0DebuggerMenu.PNG │ │ ├── VS7.1Debugger.PNG │ │ ├── VS7.1DebuggerMenu.PNG │ │ ├── VS8.0Debugger.PNG │ │ ├── VS8.0Debugger1.PNG │ │ ├── VS8.0Debugger2.PNG │ │ ├── VS8.0DebuggerMenu.PNG │ │ ├── VS9.0Debugger.PNG │ │ ├── VS9.0DebuggerMenu.PNG │ │ ├── WinForm.PNG │ │ ├── architecture.PNG │ │ ├── config.PNG │ │ ├── config.a.png │ │ ├── config1.PNG │ │ ├── config2.PNG │ │ ├── config3.png │ │ ├── config4.png │ │ ├── config5.png │ │ ├── config6.png │ │ ├── custom_type.PNG │ │ ├── custom_type2.PNG │ │ ├── dcg.PNG │ │ ├── dcg1.PNG │ │ ├── dcg2.PNG │ │ ├── debugger.PNG │ │ ├── hello.PNG │ │ ├── hello_vb.PNG │ │ ├── imageprocessor.PNG │ │ ├── imageprocessor1.PNG │ │ ├── interop_tut.PNG │ │ ├── mono1.png │ │ ├── mono2.png │ │ ├── mono3.png │ │ ├── mono4.png │ │ ├── nuget.png │ │ ├── pre_post.PNG │ │ ├── scriptInNP.png │ │ ├── searchDirs.png │ │ ├── selectDir.PNG │ │ ├── shell_ext_incompatibility.PNG │ │ ├── silverlight_menu.png │ │ ├── syntime.PNG │ │ ├── textprocessor.PNG │ │ ├── textprocessor1.PNG │ │ ├── textprocessor2.PNG │ │ ├── textprocessor3.PNG │ │ ├── textprocessor4.PNG │ │ ├── toolbar1.PNG │ │ ├── toolbar2.PNG │ │ ├── well-known_type.PNG │ │ ├── ws1.PNG │ │ └── ws2.PNG │ ├── Importing_script_Tutorial.html │ ├── Importing_scripts.html │ ├── Installation.html │ ├── Installation_files │ │ ├── colorschememapping.xml │ │ ├── filelist.xml │ │ └── themedata.thmx │ ├── Integration_with_OS.html │ ├── Isolated_execution_patern.html │ ├── Licence.html │ ├── Load_assemblies.html │ ├── MSDN.css │ ├── MS_VS_10.0.html │ ├── MS_VS_7.1.html │ ├── MS_VS_8.0.html │ ├── MS_VS_9.0.html │ ├── NonEngineDirectives.html │ ├── Notepad++.html │ ├── ObjectCasterLicence.html │ ├── Overview.html │ ├── Passing_custom_type_between_script_and_host.html │ ├── Passing_well-known_type_between_script_and_host.html │ ├── Platform_SDK.html │ ├── ProgrammingReference.html │ ├── Quick_start.html │ ├── Sample_script.html │ ├── Script_hosting_guideline_.html │ ├── Script_library.html │ ├── SharpDevelop.html │ ├── Simple_Scripting.html │ ├── Synchronise_system_clock.html │ ├── Text_processor.html │ ├── Text_processor1.html │ ├── Tutorial.html │ ├── Tutorial │ │ ├── AppSettings │ │ │ ├── AppConfigSection.zip │ │ │ ├── AppConfigSections.zip │ │ │ └── CustomAppSettings.zip │ │ ├── CF │ │ │ └── Hello.cs │ │ ├── CmdShell.cs │ │ ├── CustomAppSettings.cs.config │ │ ├── Hello.cs │ │ ├── ImageProcessor │ │ │ └── ImageProcessor.zip │ │ ├── Macros │ │ │ ├── precompile.cs │ │ │ └── script_simple.cs │ │ ├── Mono │ │ │ └── Mono.zip │ │ ├── Non-C# │ │ │ ├── CSSCodeProvider.cs │ │ │ ├── Hello.js │ │ │ ├── Hello.vb │ │ │ └── compilers.cs │ │ ├── PrintText.cs │ │ ├── TextProcessor │ │ │ └── TextProcessor.zip │ │ ├── WS │ │ │ ├── Hello.cs │ │ │ ├── Hello_WS │ │ │ │ └── Hello.asmx │ │ │ └── helloClient.cs │ │ ├── WinForm.cs │ │ ├── WinForm.cs.txt │ │ ├── calendar.cs │ │ ├── interop │ │ │ └── interop.zip │ │ ├── synTime.cs │ │ └── web.config │ ├── Type_sharing_patern.html │ ├── Using_.NET_assemblies.html │ ├── Using_COM.html │ ├── Using_COM_tutorial.html │ ├── Using_Resources.html │ ├── What_is_new.html │ ├── What_is_new_Next.html │ ├── What_is_new_files │ │ ├── CmdShell.cs │ │ ├── CustomAppSettings.cs.config │ │ ├── Hello.cs │ │ ├── PrintText.cs │ │ ├── WinForm.cs │ │ ├── calendar.cs │ │ ├── colorschememapping.xml │ │ ├── filelist.xml │ │ ├── synTime.cs │ │ └── themedata.thmx │ ├── WinForm_script.html │ ├── add_searchdir_cmd.html │ ├── advanced.html │ ├── clear.cs │ ├── cpp.html │ ├── dcg.corrupted.html │ ├── dcg.html │ ├── evaluator.html │ ├── fundamantals.html │ ├── hosting_control.html │ ├── ignoreNS.html │ ├── imageprocessor.resx │ ├── indexNoFrame.html │ ├── introduction.html │ ├── js.html │ ├── nant.html │ ├── noconfig.html │ ├── non_cs_compilers.html │ ├── non_engine_directives.html │ ├── other_languages.html │ ├── pre_post_scripts.corrupted.html │ ├── pre_post_scripts.html │ ├── precompiler_directive.html │ ├── precompilers.html │ ├── remoting.html │ ├── root │ │ ├── MSDN.css │ │ ├── Thumbs.db │ │ ├── WhatIsNew.html │ │ ├── contents.html │ │ ├── css_update.cs │ │ ├── index.html │ │ ├── indexCOMTutorial.html │ │ ├── indexGuideline.html │ │ ├── indexImporting.html │ │ ├── indexNoFrame.html │ │ ├── indexScriptHosting.html │ │ ├── indexTutorial.html │ │ ├── indexUsingAssemblies.html │ │ ├── indexWhatNew.html │ │ ├── search.bmp │ │ ├── search.html │ │ ├── synch.bmp │ │ ├── tree.css │ │ ├── tree.js │ │ ├── treenodedot.gif │ │ ├── treenodeminus.gif │ │ └── treenodeplus.gif │ ├── scriptAliases.corrupted.html │ ├── scriptAliases.html │ ├── scriptPostProcessing.html │ ├── script_nugets.html │ ├── shell_extensions.html │ ├── simplified_hosting.html │ ├── todo.txt │ ├── vb.html │ ├── vista.html │ ├── wcf.html │ ├── wpf.html │ └── ws.html ├── index.md └── linux │ └── ubuntu │ ├── cs-script_3.27.2.1.deb │ ├── cs-script_3.27.5.0_all.deb │ ├── cs-script_3.28.8.0_all.deb │ └── version.txt └── help.txt /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2018 oleg-shilo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Source/.NET Core/CSScriptLib/src/CSScriptLib.Client/CSScriptLib.Client.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | netcoreapp2.0 5 | CSScriptLib.Client 6 | Exe 7 | CSScriptLib.Client 8 | false 9 | false 10 | false 11 | true 12 | true 13 | snupkg 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Source/.NET Core/CSScriptLib/src/CSScriptLib.Client/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("CS-Script")] 10 | [assembly: AssemblyProduct("CSScriptLib.Client")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("cf94c31d-0da0-4fdb-bf43-14caecbd4824")] -------------------------------------------------------------------------------- /Source/.NET Core/CSScriptLib/src/CSScriptLib.Client461/CSScriptLib.Client461.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net461 5 | CSScriptLib.Client461 6 | Exe 7 | CSScriptLib.Client 8 | false 9 | false 10 | false 11 | true 12 | true 13 | snupkg 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Source/.NET Core/CSScriptLib/src/CSScriptLib.Client461/Program.cs: -------------------------------------------------------------------------------- 1 | using CSScriptLib; 2 | using System; 3 | using System.Linq; 4 | using System.Reflection; 5 | using Microsoft.CodeAnalysis.CSharp.Scripting; 6 | using System.IO; 7 | using System.Text; 8 | using Microsoft.CodeAnalysis; 9 | using Microsoft.CodeAnalysis.Emit; 10 | using System.Runtime.Loader; 11 | using System.Net; 12 | using Newtonsoft.Json.Linq; 13 | 14 | namespace CSScriptLib.Client 15 | { 16 | public class Program 17 | { 18 | public static void Main(string[] args) 19 | { 20 | CSScript.EvaluatorConfig.DebugBuild = true; 21 | CSScript.EvaluatorConfig.RefernceDomainAsemblies = true; 22 | //CSScript.EvaluatorConfig.Access = EvaluatorAccess.Singleton; 23 | 24 | RoslynEvaluator.LoadCompilers(); 25 | 26 | Test.LoadCode2(); 27 | Test.CheckForErrors(); return; 28 | Test.CompileAssembly(); return; 29 | Test.ReferencingPackagesCode(); //return; 30 | Test.CompileCode(); 31 | Test.CompileMethod(); 32 | Test.CompileCSharp_7(); 33 | Test.CompileDelegate(); 34 | Test.CompileDelegate1(); 35 | Test.LoadCode(); 36 | Test.LoadCode2(); 37 | Test.CrossReferenceCode(); 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /Source/.NET Core/CSScriptLib/src/CSScriptLib.Client461/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("CS-Script")] 10 | [assembly: AssemblyProduct("CSScriptLib.Client461")] 11 | [assembly: AssemblyTrademark("")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("cf94c31d-0da0-4fdb-bf43-14caecbd4824")] -------------------------------------------------------------------------------- /Source/.NET Core/CSScriptLib/src/CSScriptLib/AppDomain.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Reflection; 5 | using System.Threading.Tasks; 6 | using Microsoft.Extensions.DependencyModel; 7 | 8 | namespace CSScriptLib 9 | { 10 | // public class AppDomain 11 | // { 12 | // public static AppDomain CurrentDomain { get; private set; } 13 | 14 | // static AppDomain() 15 | // { 16 | // CurrentDomain = new AppDomain(); 17 | // } 18 | 19 | // public Assembly[] GetAssemblies() 20 | // { 21 | // var assemblies = new List(); 22 | // var dependencies = DependencyContext.Default.RuntimeLibraries; 23 | // foreach (var library in dependencies) 24 | // { 25 | // //if (IsCandidateCompilationLibrary(library)) 26 | // try 27 | // { 28 | // var assembly = Assembly.Load(new AssemblyName(library.Name)); 29 | // assemblies.Add(assembly); 30 | // } 31 | // catch { } 32 | // } 33 | // return assemblies.ToArray(); 34 | // } 35 | 36 | // static bool IsCandidateCompilationLibrary(RuntimeLibrary compilationLibrary) 37 | // { 38 | // return compilationLibrary.Name == ("Specify") 39 | // || compilationLibrary.Dependencies.Any(d => d.Name.StartsWith("Specify")); 40 | // } 41 | // } 42 | } -------------------------------------------------------------------------------- /Source/.NET Core/CSScriptLib/src/CSScriptLib/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyConfiguration("")] 9 | [assembly: AssemblyCompany("Oleg Shilo")] 10 | [assembly: AssemblyProduct("CS-Script")] 11 | [assembly: AssemblyTrademark("CS-Script")] 12 | 13 | // Setting ComVisible to false makes the types in this assembly not visible 14 | // to COM components. If you need to access a type in this assembly from 15 | // COM, set the ComVisible attribute to true on that type. 16 | [assembly: ComVisible(false)] 17 | 18 | // The following GUID is for the ID of the typelib if this project is exposed to COM 19 | [assembly: Guid("7cea89c9-e906-4852-ba40-16be33bcc2d1")] -------------------------------------------------------------------------------- /Source/.NET Core/CSScriptLib/src/CSScriptLib/output/agregate.cmd: -------------------------------------------------------------------------------- 1 | copy ..\bin\Release\CS-Script.Core.*.nupkg .\ 2 | pause -------------------------------------------------------------------------------- /Source/.NET Core/prepare_publish_cs-script.core.cmd: -------------------------------------------------------------------------------- 1 | cd cscs.exe.core 2 | md "..\out\.NET Core" 3 | "..\out\.NET Core\css.exe" -server:stop 4 | dotnet publish -c Release -f netcoreapp2.1 -o "..\out\.NET Core" 5 | copy ..\css\bin\Release\css.exe "..\out\.NET Core\css.exe" 6 | cd ..\out\.NET Core 7 | del *.dbg 8 | del *.pdb 9 | rd /S /Q runtimes 10 | pause -------------------------------------------------------------------------------- /Source/CS-S.AsmInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("CS-Script luncher")] 9 | [assembly: AssemblyDescription("CS-Script luncher")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Oleg Shilo")] 12 | [assembly: AssemblyProduct("CS-Script")] 13 | [assembly: AssemblyCopyright("Copyright (C) 2004-2013 Oleg Shilo")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM componenets. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("8afbd3fc-0a39-4db5-b592-b2981982b33d")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("3.4.1.2")] 33 | [assembly: AssemblyFileVersion("3.4.1.2")] 34 | -------------------------------------------------------------------------------- /Source/CS-Script/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Source/CS-Script/CS-Script.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CS-Script", "CS-Script.csproj", "{BE5B37F2-30E8-4D3B-B428-8253E1ED6C19}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {BE5B37F2-30E8-4D3B-B428-8253E1ED6C19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {BE5B37F2-30E8-4D3B-B428-8253E1ED6C19}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {BE5B37F2-30E8-4D3B-B428-8253E1ED6C19}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {BE5B37F2-30E8-4D3B-B428-8253E1ED6C19}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Source/CS-Script/CSScript.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/CS-Script/CSScript.Properties.Resources.resources -------------------------------------------------------------------------------- /Source/CS-Script/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Win32; 2 | using System; 3 | using System.Diagnostics; 4 | using System.Linq; 5 | using System.Windows.Forms; 6 | 7 | namespace CS_Script 8 | { 9 | static class Program 10 | { 11 | static void Main(string[] args) 12 | { 13 | if (args.Length == 0) 14 | { 15 | MessageBox.Show("This application is not intended to be run on its own.\nIt is meant to be configured as a default 'Open With...' application for the *.cs files.", "CS-Script"); 16 | } 17 | else 18 | try 19 | { 20 | var cmdTemplate = (string)Registry.GetValue(@"HKEY_CLASSES_ROOT\CsScript\Shell\Open\command", "App", ""); 21 | 22 | char separator = ' '; 23 | 24 | if (cmdTemplate.StartsWith("\"")) 25 | separator = '\"'; 26 | 27 | string[] parts = cmdTemplate.Split(new[] { separator }, 2, StringSplitOptions.RemoveEmptyEntries); 28 | 29 | string handlerApp = parts.First(); 30 | string handlerArgs = parts.Last(); 31 | 32 | for (int i = 0; i < args.Length; i++) 33 | handlerArgs = handlerArgs.Replace("%" + (i + 1), args[i]); 34 | 35 | Process.Start(handlerApp, handlerArgs); 36 | } 37 | catch (Exception e) 38 | { 39 | MessageBox.Show(e.Message); 40 | } 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /Source/CS-Script/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18010 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace CSScript.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Source/CS-Script/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Source/CSI/Src/csi.cs: -------------------------------------------------------------------------------- 1 | // CSI: A simple C# interpreter 2 | // Copyright, Steve Donovan 2005 3 | // Use freely, but please acknowledge! 4 | //------------------------------------ 5 | //css_inc console.cs; 6 | //css_inc interpreter.cs; 7 | //css_inc prepro.cs; 8 | using System; 9 | using System.IO; 10 | 11 | class RunCSI { 12 | const string caption = "CSI Simple C# Interpreter vs 0.8", 13 | prompt = "# ", block_prompt = ". "; 14 | 15 | public static void Main(string [] args) { 16 | Interpreter.Console = new TextConsole(); 17 | Utils.Write(caption+"\n"+prompt); 18 | Interpreter interp = new Interpreter(); 19 | string defs = args.Length > 0 ? args[0] : interp.DefaultIncludeFile(); 20 | interp.ReadIncludeFile(defs); 21 | while (interp.ProcessLine(Utils.ReadLine())) 22 | Utils.Write(interp.BlockLevel > 0 ? block_prompt : prompt); 23 | } 24 | } 25 | 26 | class TextConsole : IConsole { 27 | public string ReadLine() { 28 | return Console.In.ReadLine(); 29 | } 30 | 31 | public void Write(string s) { 32 | Console.Write(s); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Source/CSSRoslynProvider/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("CSSCodeProvider")] 9 | [assembly: AssemblyDescription(".NET v4.6 (C#6) code compilation with Roslyn")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CSSCodeProvider")] 13 | [assembly: AssemblyCopyright("Copyright (C) 2004-2017 Oleg Shilo")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("8afbd2fc-0a39-4db3-b592-b2981982b33d")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number// Revision 30 | // 31 | [assembly: AssemblyVersion("3.30.5.2")] 32 | [assembly: AssemblyFileVersion("3.30.5.2")] -------------------------------------------------------------------------------- /Source/CSSRoslynProvider/CSSRoslynProvider.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/CSSRoslynProvider/CSSRoslynProvider.dll -------------------------------------------------------------------------------- /Source/CSSRoslynProvider/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/CSSRoslynProvider/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll -------------------------------------------------------------------------------- /Source/CSSRoslynProvider/RoslynCodeDomProvider.7z: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/CSSRoslynProvider/RoslynCodeDomProvider.7z -------------------------------------------------------------------------------- /Source/CSSRoslynProvider/deployment_model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/CSSRoslynProvider/deployment_model.png -------------------------------------------------------------------------------- /Source/CSScriptLibrary/DebugScript.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C# Express 2008 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DebugScript", "DebugScript.csproj", "{8860B29B-749F-4925-86C8-F9C4B93C9DA5}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Source/CSScriptLibrary/sgKey.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/CSScriptLibrary/sgKey.snk -------------------------------------------------------------------------------- /Source/ChooseDefaultProgram/AssemblyInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/ChooseDefaultProgram/AssemblyInfo.cs -------------------------------------------------------------------------------- /Source/ChooseDefaultProgram/CSScript.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/ChooseDefaultProgram/CSScript.Resources.resources -------------------------------------------------------------------------------- /Source/ChooseDefaultProgram/ChooseDefaultProgram.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChooseDefaultProgram", "ChooseDefaultProgram.csproj", "{8860B29B-749F-4925-86C8-F9C4B93C9DA5}" 5 | EndProject 6 | Global 7 | GlobalSection(SharpSetup) = preSolution 8 | Version = 1.2 9 | EndGlobalSection 10 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 11 | Debug|Any CPU = Debug|Any CPU 12 | Release|Any CPU = Release|Any CPU 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 16 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Debug|Any CPU.Build.0 = Debug|Any CPU 17 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Release|Any CPU.ActiveCfg = Release|Any CPU 18 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Release|Any CPU.Build.0 = Release|Any CPU 19 | EndGlobalSection 20 | GlobalSection(SolutionProperties) = preSolution 21 | HideSolutionNode = FALSE 22 | EndGlobalSection 23 | EndGlobal 24 | -------------------------------------------------------------------------------- /Source/ChooseDefaultProgram/Lib/PsExec.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/ChooseDefaultProgram/Lib/PsExec.exe -------------------------------------------------------------------------------- /Source/ConfigConsole/build.cmd: -------------------------------------------------------------------------------- 1 | echo off 2 | cscs.exe /l /dbg /ew ConfigConsole.cs 3 | del *.resx 4 | del *.resources 5 | pause -------------------------------------------------------------------------------- /Source/ConfigConsole/buildCheck.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System; 3 | 4 | class Script 5 | { 6 | static public void Main() 7 | { 8 | string text = File.ReadAllText("ConfigConsole.cs"); 9 | 10 | //"{ 25D84CB0" is a formatting CSScript.Npp artefact 11 | if(text.Contains("{ 25D84CB0")) 12 | Console.WriteLine("!!!!!!!!!!!! ConfigConsole.cs - GUIDS are miss formatted !!!!!!!!!!"); 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Source/ConfigConsole/css_logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/ConfigConsole/css_logo.ico -------------------------------------------------------------------------------- /Source/ConfigConsole/css_logo_256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/ConfigConsole/css_logo_256x256.png -------------------------------------------------------------------------------- /Source/ConfigConsole/donate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/ConfigConsole/donate.png -------------------------------------------------------------------------------- /Source/ConfigConsole/images.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Windows.Forms; 4 | using System.Drawing; 5 | using System.Reflection; 6 | using System.Resources; 7 | 8 | class Script 9 | { 10 | [STAThread] 11 | static public void Main(string[] args) 12 | { 13 | string sourceDir = Path.GetDirectoryName(args[0]); 14 | 15 | string[] files = new string[] 16 | { 17 | Path.Combine(sourceDir, "css_logo_256x256.png"), 18 | Path.Combine(sourceDir, "donate.png"), 19 | Path.Combine(sourceDir, "css_logo.ico") 20 | }; 21 | 22 | var resFile = Path.Combine(sourceDir, "images.resources"); 23 | 24 | using (var resourceWriter = new ResourceWriter(resFile)) 25 | { 26 | foreach (string file in files) 27 | { 28 | if (file.EndsWith(".ico")) 29 | resourceWriter.AddResource(Path.GetFileName(file), new Icon(file)); 30 | else 31 | resourceWriter.AddResource(Path.GetFileName(file), new Bitmap(file)); 32 | } 33 | 34 | resourceWriter.Generate(); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Source/Logo/css_logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Logo/css_logo.ico -------------------------------------------------------------------------------- /Source/Mono.CSharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Mono.CSharp.dll -------------------------------------------------------------------------------- /Source/Mono.Posix.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Mono.Posix.dll -------------------------------------------------------------------------------- /Source/NAnt.CSScript/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("CSScript.Tasks")] 9 | [assembly: AssemblyDescription("CSScript tasks for NAnt")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("CSScript.Tasks")] 13 | [assembly: AssemblyCopyright("Copyright 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM componenets. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("8afbd3fc-0a39-4db5-b592-b2981982b33d")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("3.30.5.2")] 33 | [assembly: AssemblyFileVersion("3.30.5.2")] 34 | -------------------------------------------------------------------------------- /Source/NAnt.CSScript/CSScript.Tasks.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSScript.Tasks", "CSScript.Tasks.csproj", "{8860B29B-749F-4925-86C8-F9C4B93C9DA5}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/Microsoft.CodeAnalysis.CSharp.Scripting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/Microsoft.CodeAnalysis.CSharp.Scripting.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/Microsoft.CodeAnalysis.CSharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/Microsoft.CodeAnalysis.CSharp.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/Microsoft.CodeAnalysis.Scripting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/Microsoft.CodeAnalysis.Scripting.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/Microsoft.CodeAnalysis.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/Microsoft.CodeAnalysis.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/SandCastleDependencies/System.Runtime.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/SandCastleDependencies/System.Runtime.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.AppContext.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.AppContext.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Collections.Immutable.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Collections.Immutable.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Console.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Console.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Diagnostics.FileVersionInfo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Diagnostics.FileVersionInfo.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Diagnostics.StackTrace.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Diagnostics.StackTrace.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.IO.Compression.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.IO.Compression.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.IO.FileSystem.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.IO.FileSystem.Primitives.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.IO.FileSystem.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.IO.FileSystem.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Reflection.Metadata.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Reflection.Metadata.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Security.Cryptography.Algorithms.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Security.Cryptography.Algorithms.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Security.Cryptography.Encoding.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Security.Cryptography.Encoding.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Security.Cryptography.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Security.Cryptography.Primitives.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Security.Cryptography.X509Certificates.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Security.Cryptography.X509Certificates.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Text.Encoding.CodePages.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Text.Encoding.CodePages.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Threading.Thread.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Threading.Thread.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.ValueTuple.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.ValueTuple.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Xml.ReaderWriter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Xml.ReaderWriter.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Xml.XPath.XDocument.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Xml.XPath.XDocument.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Xml.XPath.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Xml.XPath.dll -------------------------------------------------------------------------------- /Source/Roslyn.Scripting/System.Xml.XmlDocument.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/Roslyn.Scripting/System.Xml.XmlDocument.dll -------------------------------------------------------------------------------- /Source/Tests/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Source/Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Tests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Tests")] 13 | [assembly: AssemblyCopyright("Copyright © 2004-2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("170bd2f7-ef8f-4db9-bd71-391009504f7a")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] -------------------------------------------------------------------------------- /Source/Tests/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Source/cscscript/App.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/cscscript/App.ico -------------------------------------------------------------------------------- /Source/cscscript/DebugScript.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual Studio 2005 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DebugScript", "DebugScript.csproj", "{187420D0-C882-4E1C-A365-F97D0B223226}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {187420D0-C882-4E1C-A365-F97D0B223226}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {187420D0-C882-4E1C-A365-F97D0B223226}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {187420D0-C882-4E1C-A365-F97D0B223226}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {187420D0-C882-4E1C-A365-F97D0B223226}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Source/cscscript/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("C# Script engine Console executable")] 9 | [assembly: AssemblyDescription("C# Script engine Console executable")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Oleg Shilo")] 12 | [assembly: AssemblyProduct("C# Script engine")] 13 | [assembly: AssemblyCopyright("(C) 2004-2020 Oleg Shilo")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | #if dev 17 | [assembly: InternalsVisibleTo("Tests")] 18 | #endif 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | // The following GUID is for the ID of the typelib if this project is exposed to COM 25 | [assembly: Guid("8afbd3fc-0a39-4db5-b592-b2981982b33d")] 26 | 27 | // Version information for an assembly consists of the following four values: 28 | // 29 | // Major Version 30 | // Minor Version 31 | // Build Number 32 | // Revision 33 | // 34 | [assembly: AssemblyVersion("3.30.7.0")] 35 | [assembly: AssemblyFileVersion("3.30.7.0")] -------------------------------------------------------------------------------- /Source/cscscript/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Source/cscscript/file.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/cscscript/file.ico -------------------------------------------------------------------------------- /Source/css_config.default.xml: -------------------------------------------------------------------------------- 1 | 2 | /c /sconfig /co:/warn:0 3 | STA 4 | True 5 | %CSSCRIPT_DIR%\Lib\CSSCodeProvider.v4.6.dll 6 | 7 | 8 | %CSSCRIPT_DIR%\Lib;%CSSCRIPT_INC%; 9 | 10 | 30 11 | HideMostFiles 12 | False 13 | False 14 | v4.0 15 | default 16 | System.Core; System.Linq; 17 | False 18 | True 19 | 20 | 21 | True 22 | -------------------------------------------------------------------------------- /Source/css_config/App.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/css_config/App.ico -------------------------------------------------------------------------------- /Source/css_config/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("CS-Script Configuration Console")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("css_config")] 13 | [assembly: AssemblyCopyright("Copyright (C) 2004-2013 Oleg Shilo")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM componenets. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("8afbd3fc-0a39-4db5-b592-b2981982b33d")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("3.30.5.2")] 33 | [assembly: AssemblyFileVersion("3.30.5.2")] 34 | -------------------------------------------------------------------------------- /Source/css_config/Images/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/css_config/Images/splash.png -------------------------------------------------------------------------------- /Source/css_config/SplashScreen.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/css_config/SplashScreen.resources -------------------------------------------------------------------------------- /Source/css_config/css_config.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "css_config", "css_config.csproj", "{8860B29B-749F-4925-86C8-F9C4B93C9DA5}" 5 | EndProject 6 | Global 7 | GlobalSection(SharpSetup) = preSolution 8 | Version = 1.2 9 | EndGlobalSection 10 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 11 | Debug|Any CPU = Debug|Any CPU 12 | Release|Any CPU = Release|Any CPU 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 16 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Debug|Any CPU.Build.0 = Debug|Any CPU 17 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Release|Any CPU.ActiveCfg = Release|Any CPU 18 | {8860B29B-749F-4925-86C8-F9C4B93C9DA5}.Release|Any CPU.Build.0 = Release|Any CPU 19 | EndGlobalSection 20 | GlobalSection(SolutionProperties) = preSolution 21 | HideSolutionNode = FALSE 22 | EndGlobalSection 23 | EndGlobal 24 | -------------------------------------------------------------------------------- /Source/cswscript/App.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/cswscript/App.ico -------------------------------------------------------------------------------- /Source/cswscript/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Source/cswscript/file.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/Source/cswscript/file.ico -------------------------------------------------------------------------------- /Source/deployment/inc/fkill.cs: -------------------------------------------------------------------------------- 1 | //css_args /nl 2 | using System; 3 | using System.Diagnostics; 4 | using System.Collections.Generic; 5 | using System.IO; 6 | using System.Threading; 7 | 8 | class Script 9 | { 10 | const string usage = "Usage: fkill [file path #0]...[file path #n] ...\nDeletes (kills) file(s). If file is locked by some process it will wait until file is released and than kill it.\n"; 11 | 12 | static public void Main(string[] args) 13 | { 14 | if (args.Length == 0 || (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))) 15 | { 16 | Console.WriteLine(usage); 17 | } 18 | else 19 | { 20 | List files = new List(args); 21 | 22 | while (files.Count != 0) 23 | { 24 | foreach (var file in files) 25 | { 26 | try 27 | { 28 | if (File.Exists(file)) 29 | File.Delete(file); 30 | 31 | files.Remove(file); 32 | } 33 | catch { } 34 | } 35 | 36 | Thread.Sleep(1000); 37 | } 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /Source/deployment/inc/isadmin.cs: -------------------------------------------------------------------------------- 1 | //css_args /ac, /nl 2 | using System.Security.Principal; 3 | using System; 4 | using System.Diagnostics; 5 | 6 | void main() 7 | { 8 | Console.WriteLine( 9 | new WindowsPrincipal(WindowsIdentity.GetCurrent()) 10 | .IsInRole(WindowsBuiltInRole.Administrator)); 11 | } -------------------------------------------------------------------------------- /Source/deployment/inc/pkill.cs: -------------------------------------------------------------------------------- 1 | //css_args /nl 2 | using System; 3 | using System.Diagnostics; 4 | 5 | class Script 6 | { 7 | const string usage = "Usage: nkill.cs [process name #0] [process name #1] ...\nTerminates processes\n"; 8 | 9 | static public void Main(string[] args) 10 | { 11 | if (args.Length == 0 || (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))) 12 | { 13 | Console.WriteLine(usage); 14 | } 15 | else 16 | { 17 | foreach(string prName in args) 18 | { 19 | try 20 | { 21 | Process [] processByName = Process.GetProcessesByName(prName); 22 | foreach(Process pr in processByName) 23 | pr.Kill(); 24 | } 25 | catch 26 | { 27 | Console.WriteLine("Cannot terminate " + prName + "\n"); 28 | } 29 | } 30 | } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /Source/deployment/inc/which.cs: -------------------------------------------------------------------------------- 1 | //css_args /nl 2 | using System; 3 | using System.IO; 4 | using System.Text; 5 | using Microsoft.Win32; 6 | using System.Diagnostics; 7 | 8 | class Script 9 | { 10 | const string usage = "Usage: cscscript which file\nVerifies which copy of the executable file would be executed if invoked from command-prompt.\n"+ 11 | "file - name of the executable file\n"; 12 | 13 | static public void Main(string[] args) 14 | { 15 | if (args.Length == 0 || 16 | (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))) 17 | { 18 | Console.WriteLine(usage); 19 | } 20 | else 21 | { 22 | string file = args[0].EndsWith(".exe") ? args[0] : args[0]+".exe"; 23 | string filePath = file; 24 | 25 | if (File.Exists(file)) 26 | Console.WriteLine(Path.GetFullPath(filePath)); 27 | else 28 | foreach(string dir in Environment.GetEnvironmentVariable("Path").Split(";".ToCharArray())) 29 | { 30 | if (File.Exists(filePath = Path.Combine(dir, file))) 31 | { 32 | Console.WriteLine(filePath); 33 | break; 34 | } 35 | } 36 | } 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /Source/deployment/lib/Script.cs: -------------------------------------------------------------------------------- 1 | //css_args -c:0 2 | //css_pre wsdl_t() 3 | using System; 4 | using System.Windows.Forms; 5 | 6 | class Script 7 | { 8 | [STAThread] 9 | static public void Main(string[] args) 10 | { 11 | string primaryScriptFile = Environment.GetEnvironmentVariable("EntryScript"); 12 | Console.WriteLine("primaryScriptFile: " + primaryScriptFile); 13 | MessageBox.Show("Just a test!"); 14 | 15 | for (int i = 0; i < args.Length; i++) 16 | { 17 | Console.WriteLine(args[i]); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Source/deployment/lib/asAdmin.cs: -------------------------------------------------------------------------------- 1 | //css_inc StartElevated.cs; -------------------------------------------------------------------------------- /Source/deployment/lib/bug.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | public class Script 5 | { 6 | [STAThread] 7 | static public void Main(string[] args) 8 | { 9 | if (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help")) 10 | Console.WriteLine("Usage: cswscript bug ...\nPrepares bug report e-mail and loades it into default e-mail client.\n"); 11 | else 12 | Process.Start("mailto:csscript.support@gmail.com?subject=Bug report"); 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Source/deployment/lib/ccs2cs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | //css_import ccscompiler.cs; 5 | 6 | class Script 7 | { 8 | const string usage = "Usage: cscscript ccs2cs fileIn fileOut ...\nConverts the cassless C# into standard C#.\n" + 9 | "fileIn - file with classless C# code.\n" + 10 | "fileOut - file with standard C# code.\n"+ 11 | "Note: the resulting C# code may require refactoring.\n"; 12 | [STAThread] 13 | static public void Main(string[] args) 14 | { 15 | try 16 | { 17 | if (args.Length != 2 || args[0].ToLower() == "-?" || args[0].ToLower() == "/?") 18 | Console.WriteLine(usage); 19 | else 20 | { 21 | CSScript.CCSharpParser ccs = new CSScript.CCSharpParser(args[0]); 22 | if (ccs.isClassless) 23 | using (StreamWriter sw = new StreamWriter(args[1])) 24 | sw.Write(ccs.CSharpScriptCode); 25 | else 26 | throw new Exception("Error: The file "+args[0]+" content is not recognised as a classless C# code."); 27 | 28 | Console.WriteLine("Conversion successfully completed"); 29 | } 30 | } 31 | catch (Exception ex) 32 | { 33 | Console.WriteLine(ex); 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Source/deployment/lib/clearcache.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using CSScriptLibrary; 4 | using csscript; 5 | 6 | class Script 7 | { 8 | const string usage = "Usage: cscscript clearCache [script]\n" + 9 | "Deletes all compiled script files (.csc) from the ScriptLibrary directory. " + 10 | "script - Deletes all .csc files from the cache directory of the specified script file." + 11 | "Use this script when you need to force your scripts to be recompiled (e.g. when version of of target CLR is changed).\n"; 12 | 13 | static public void Main(string[] args) 14 | { 15 | if (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help")) 16 | { 17 | Console.WriteLine(usage); 18 | } 19 | else 20 | { 21 | string dir = Path.Combine(Environment.GetEnvironmentVariable("CSSCRIPT_DIR"), "Lib"); 22 | 23 | if (args.Length != 0) 24 | dir = Path.GetFullPath(CSSEnvironment.GetCacheDirectory(Path.GetFullPath(args[0]))); 25 | 26 | foreach (string file in Directory.GetFiles(dir, "*.csc")) 27 | { 28 | try 29 | { 30 | File.Delete(file); 31 | Console.WriteLine("Cleared: " + file); 32 | } 33 | catch 34 | { 35 | } 36 | } 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Source/deployment/lib/cmdShell.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Win32; 3 | 4 | class Script 5 | { 6 | const string usage = "Usage: cscscript cmdShell ...\nCreates shell extension 'Cmd'. This extension allows to open command-prompt pointing to the directory where 'right-clocked' file is.\n"+ 7 | "'/i' / '/u' - command switch to install/uninstall shell extension\n"; 8 | 9 | static public void Main(string[] args) 10 | { 11 | if (args.Length == 1) 12 | { 13 | if (args[0].ToLower() == "/u") 14 | { 15 | try 16 | { 17 | Registry.ClassesRoot.DeleteSubKeyTree(@"*\shell\Cmd"); 18 | Console.WriteLine("Shell extension 'Cmd' has been removed."); 19 | } 20 | catch (Exception ex) 21 | { 22 | Console.WriteLine(ex); 23 | } 24 | } 25 | else if (args[0].ToLower() == "/i") 26 | { 27 | RegistryKey shell = Registry.ClassesRoot.CreateSubKey(@"*\shell\Cmd\command"); 28 | shell.SetValue("", "cmd.exe"); 29 | shell.Close(); 30 | Console.WriteLine("Shell extension 'Cmd' has been created."); 31 | } 32 | else 33 | Console.WriteLine(usage); 34 | } 35 | else 36 | Console.WriteLine(usage); 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /Source/deployment/lib/config.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using System.Linq; 4 | using System.IO; 5 | 6 | class Script 7 | { 8 | [STAThread] 9 | static public void Main(string[] args) 10 | { 11 | string thisScriptFile = GetScriptName(Assembly.GetExecutingAssembly()); 12 | string configConsole = @"ConfigConsole\ConfigConsole.exe"; 13 | 14 | if(thisScriptFile != null) 15 | configConsole = Path.Combine(Path.GetDirectoryName(thisScriptFile), configConsole); 16 | 17 | AppDomain.CurrentDomain.ExecuteAssembly(Path.GetFullPath(configConsole), args); 18 | } 19 | 20 | static string GetScriptName(Assembly assembly) 21 | { 22 | var attr = (from item in assembly.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), true) 23 | select (AssemblyDescriptionAttribute)item) 24 | .FirstOrDefault(); 25 | 26 | return attr == null ? "" : attr.Description; 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /Source/deployment/lib/createShortcut.cs: -------------------------------------------------------------------------------- 1 | //css_pre com(WScript.Shell.*, swshell.dll); 2 | using System; 3 | using System.IO; 4 | using swshell; 5 | 6 | class Script 7 | { 8 | static public void Main(string[] args) 9 | { 10 | if ((args.Length == 0) || 11 | (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))) 12 | { 13 | Console.WriteLine( "Usage: cscscript CreateShortcut file [/c] ...\n"+ 14 | "Creats execution shortcut to the script file.\n"+ 15 | " file - script file path\n" + 16 | " /c - console window\n"); 17 | } 18 | else 19 | { 20 | string script = Path.GetFullPath(args[0]); 21 | string engine = @"csws.exe"; 22 | string shortcut = Path.ChangeExtension(script, ".lnk"); 23 | 24 | if (args.Length > 1 && args[1].ToLower() == "/c") 25 | engine = @"cscs.exe"; 26 | 27 | IWshShortcut sc = (IWshShortcut)new WshShellClass().CreateShortcut(shortcut); 28 | sc.TargetPath = "\"" + engine + "\""; 29 | sc.Arguments = "\"" + script + "\""; 30 | sc.IconLocation = sc.TargetPath; 31 | sc.WorkingDirectory = Path.GetDirectoryName(script); 32 | sc.Description = "C# Script Shortcut"; 33 | sc.Save(); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Source/deployment/lib/elevate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Windows.Forms; 4 | using System.Security.Principal; 5 | 6 | internal class VistaCSS 7 | { 8 | static void Main(string[] args) 9 | { 10 | if (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help")) 11 | { 12 | Console.WriteLine("Usage: This script is to be used as a pre-script in the primary script code to ensure elevated execution.\n"+ 13 | "Example: //css_pre elevate();\n"); 14 | return; 15 | } 16 | 17 | if (RestartElevated()) 18 | { 19 | Process.GetCurrentProcess().Kill(); 20 | } 21 | } 22 | internal static bool RestartElevated() 23 | { 24 | if (!new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator)) 25 | { 26 | string args = ""; 27 | string[] arguments = Environment.GetCommandLineArgs(); 28 | 29 | for (int i = 1; i < arguments.Length; i++) 30 | args += "\"" + arguments[i] + "\" "; 31 | 32 | ProcessStartInfo startInfo = new ProcessStartInfo(); 33 | startInfo.UseShellExecute = true; 34 | startInfo.WorkingDirectory = Environment.CurrentDirectory; 35 | startInfo.FileName = Application.ExecutablePath; 36 | startInfo.Arguments = args; 37 | startInfo.Verb = "runas"; 38 | 39 | Process.Start(startInfo); 40 | return true; 41 | } 42 | else 43 | return false; 44 | 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /Source/deployment/lib/feedback.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | public class Script 5 | { 6 | [STAThread] 7 | static public void Main(string[] args) 8 | { 9 | if (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help")) 10 | Console.WriteLine("Usage: cswscript feedback ...\nPrepares feedback e-mail and loades it into default e-mail client.\n"); 11 | else 12 | Process.Start("mailto:csscript.support@gmail.com?subject=Feedback"); 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Source/deployment/lib/help.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Diagnostics; 4 | using System.Windows.Forms; 5 | 6 | class Script 7 | { 8 | static string usage = "Usage: cscscript help ...\nDisplays the CS-Script Help.\n"; 9 | 10 | static public void Main(string[] args) 11 | { 12 | if (args.Length == 1 || (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))) 13 | Console.WriteLine(usage); 14 | else if ("CSSCRIPT_DIR" != null && System.IO.File.Exists(Environment.ExpandEnvironmentVariables(@"%CSSCRIPT_DIR%\Docs\Help\CSScript.chm"))) 15 | { 16 | Process myProcess = new Process(); 17 | myProcess.StartInfo.FileName = Environment.ExpandEnvironmentVariables(@"%CSSCRIPT_DIR%\Docs\Help\CSScript.chm"); 18 | myProcess.StartInfo.WorkingDirectory = Path.GetDirectoryName(myProcess.StartInfo.FileName); 19 | myProcess.Start(); 20 | } 21 | else 22 | MessageBox.Show("CS-Script Help is not installed."); 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /Source/deployment/lib/lib.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | class Script 5 | { 6 | 7 | const string usage = "Usage: cscscript lib \n\tShows Script Library content.\n"; 8 | 9 | static public void Main(string[] args) 10 | { 11 | if ((args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))) 12 | { 13 | Console.WriteLine(usage); 14 | } 15 | else 16 | { 17 | string homeDir = Environment.GetEnvironmentVariable("CSSCRIPT_DIR"); 18 | if (homeDir == null) 19 | Console.WriteLine("Feature is not available.\nC# Script engine was not installed properly."); 20 | else 21 | foreach(string fileName in Directory.GetFiles(Path.Combine(homeDir, "lib"), string.Format("*.cs"))) 22 | Console.WriteLine(fileName); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Source/deployment/lib/linq.includes.cs: -------------------------------------------------------------------------------- 1 | //css_ref System.Core; 2 | //css_ref System.Data.DataSetExtensions; 3 | //css_ref System.Xml; 4 | //css_ref System.Xml.Linq; -------------------------------------------------------------------------------- /Source/deployment/lib/lscache.cs: -------------------------------------------------------------------------------- 1 | //css_args /ac 2 | //css_ref %csscript_dir%\Lib\CSScriptLibrary.dll; 3 | using System; 4 | using System.Linq; 5 | using System.IO; 6 | using CSScriptLibrary; 7 | 8 | void main() 9 | { 10 | string cacheRootDir = Path.Combine(CSScript.GetScriptTempDir(), "cache"); 11 | 12 | foreach (var cacheDir in Directory.GetDirectories(cacheRootDir)) 13 | { 14 | string infoFile = Path.Combine(cacheDir, "css_info.txt"); 15 | 16 | if (!File.Exists(infoFile)) 17 | continue; 18 | 19 | string sourceDir = File.ReadAllLines(infoFile).Last(); 20 | 21 | string cachName = Path.GetFileName(cacheDir); 22 | 23 | Console.WriteLine(cachName + ":\t" + sourceDir); 24 | } 25 | } -------------------------------------------------------------------------------- /Source/deployment/lib/lsnuget.cs: -------------------------------------------------------------------------------- 1 | //css_args /nl, /ac 2 | //css_nuget -ng:-Prerelease cs-script 3 | using System; 4 | using System.Linq; 5 | using System.IO; 6 | 7 | void main() 8 | { 9 | string rootDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), @"cs-script\nuget"); 10 | Console.WriteLine("NuGet dir: "+rootDir); 11 | foreach (var dir in Directory.GetDirectories(rootDir)) 12 | Console.WriteLine(" " + Path.GetFileName(dir)); 13 | } -------------------------------------------------------------------------------- /Source/deployment/lib/netpath.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using System.Reflection; 4 | using System.IO; 5 | 6 | class Script 7 | { 8 | [DllImport("Kernel32.dll")] 9 | public static extern int SetEnvironmentVariable(string name, string value); 10 | 11 | static public void Main(string[] args) 12 | { 13 | if (args.Length == 1 && (args[0].ToLower() == "-?" || args[0].ToLower() == "/?")) 14 | Console.WriteLine("Usage: cscscript netpath ...\nSets %WINDOWS%\\Microsoft.NET\\Framework\\ to the system PATH for the current process.\n"); 15 | else 16 | { 17 | string[] version = Environment.Version.ToString().Split(".".ToCharArray()); 18 | string sdkDir = ""; 19 | 20 | if (version[0] == "1") 21 | sdkDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Microsoft Visual Studio .NET 2003\\SDK"); 22 | else if (version[0] == "2") 23 | sdkDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Microsoft Visual Studio 8\\SDK"); 24 | sdkDir = Path.Combine(sdkDir, "v"+version[0]+"."+version[1]+@"\bin"); 25 | 26 | if (Directory.Exists(sdkDir)) 27 | SetEnvironmentVariable("PATH", Environment.GetEnvironmentVariable("PATH") + ";" + Path.GetDirectoryName(typeof(string).Assembly.Location) + ";" + sdkDir); 28 | else 29 | SetEnvironmentVariable("PATH", Environment.GetEnvironmentVariable("PATH") + ";" + Path.GetDirectoryName(typeof(string).Assembly.Location)); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Source/deployment/lib/reflect.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | class Script 5 | { 6 | const string usage = "Usage: csc reflect [assmblyName] ...\nPrints assembly reflection info.\n"; 7 | 8 | static public void Main(string[] args) 9 | { 10 | if ((args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help"))) 11 | { 12 | Console.WriteLine(usage); 13 | } 14 | else 15 | { 16 | Assembly assembly = Assembly.LoadFrom(args[0]); 17 | Print(assembly); 18 | } 19 | } 20 | 21 | static void Print(Assembly assembly) 22 | { 23 | Console.WriteLine("Assembly: "+assembly.FullName+"/"+assembly.GetName()); 24 | foreach (string s in assembly.GetManifestResourceNames()) 25 | { 26 | Console.WriteLine("Resource: "+s); 27 | } 28 | foreach (AssemblyName a in assembly.GetReferencedAssemblies()) 29 | { 30 | Console.WriteLine("ReferencedAssembly: "+a.Name); 31 | } 32 | foreach (Module m in assembly.GetModules()) 33 | { 34 | Console.WriteLine("Module: "+m); 35 | foreach (Type t in m.GetTypes()) 36 | { 37 | Console.WriteLine("Type: "+t); 38 | foreach (MemberInfo mi in t.GetMembers()) 39 | { 40 | Console.WriteLine(String.Format("\t{0}: {1} ", mi.MemberType, mi.Name)); 41 | } 42 | } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Source/deployment/lib/shortname.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Runtime.InteropServices; 4 | using System.Text; 5 | 6 | class Script 7 | { 8 | [DllImport("kernel32.dll")] 9 | static extern uint GetShortPathName(string lpszLongPath, [Out] StringBuilder lpszShortPath, uint cchBuffer); 10 | 11 | const string usage = "Usage: cscscript shortName [path]...\nConvert and prints 8.3 version of the path.\n"+ 12 | " - Path to be converted. If not specified the current directory will be used.\n"; 13 | 14 | static public void Main(string[] args) 15 | { 16 | if (args.Length > 1 || (args.Length == 1 && (args[0].ToLower() == "-?" || args[0].ToLower() == "/?"))) 17 | Console.WriteLine(usage); 18 | else 19 | try 20 | { 21 | string path = (args.Length == 0) ? Environment.CurrentDirectory : Path.GetFullPath(args[0]); 22 | 23 | StringBuilder shortNameBuffer = new StringBuilder(556); 24 | GetShortPathName(path, shortNameBuffer, (uint)shortNameBuffer.Capacity); 25 | Console.WriteLine("Long name: "+path); 26 | Console.WriteLine("Short name: "+shortNameBuffer.ToString()); 27 | } 28 | catch (Exception e) 29 | { 30 | Console.WriteLine(e); 31 | } 32 | } 33 | } 34 | 35 | -------------------------------------------------------------------------------- /Source/deployment/lib/startElevated.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.Windows.Forms; 4 | using System.Security.Principal; 5 | 6 | internal class VistaCSS 7 | { 8 | static void Main(string[] args) 9 | { 10 | if (args.Length == 1 && (args[0] == "?" || args[0] == "/?" || args[0] == "-?" || args[0].ToLower() == "help")) 11 | { 12 | Console.WriteLine("Usage: cscscript startElevated 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CSScript Online Help 6 | 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/indexCOMTutorial.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Documentation Online Help 6 | 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/indexGuideline.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Documentation Online Help 6 | 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/indexImporting.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Documentation Online Help 6 | 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/indexScriptHosting.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Documentation Online Help 6 | 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/indexTutorial.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Documentation Online Help 6 | 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/indexUsingAssemblies.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Documentation Online Help 6 | 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/indexWhatNew.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Documentation Online Help 6 | 13 | 14 | 15 | 16 | 17 | 18 | <p>This page requires frames, but your browser does not support them.</p> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/help-legacy/root/search.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/help-legacy/root/search.bmp -------------------------------------------------------------------------------- /docs/help-legacy/root/search.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/help-legacy/root/search.html -------------------------------------------------------------------------------- /docs/help-legacy/root/synch.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/help-legacy/root/synch.bmp -------------------------------------------------------------------------------- /docs/help-legacy/root/tree.css: -------------------------------------------------------------------------------- 1 | .treeDiv 2 | { 3 | font-family: verdana; 4 | font-size: 70.5%; 5 | font-weight: normal; 6 | background-color: #f1f1f1; 7 | color: Black; 8 | overflow: auto; 9 | margin: 0px 0px 0px 0px; 10 | padding: 0px 0px 0px 0px; 11 | } 12 | 13 | .treeNode 14 | { 15 | white-space: nowrap; 16 | text-indent: -14px; 17 | margin: 5px 2px 5px 14px; 18 | } 19 | A.treeUnselected:hover, A.treeSelected:hover 20 | { 21 | text-decoration: underline; 22 | background-color: #cccccc; 23 | border: solid 1px #999999; 24 | text-decoration: none; 25 | } 26 | A.treeUnselected, A.treeSelected 27 | { 28 | color: Black; 29 | padding: 1px 3px 1px 3px; 30 | text-decoration: none; 31 | } 32 | A.treeSelected 33 | { 34 | background-color: #ffffff; 35 | border: solid 1px #999999; 36 | } 37 | A.treeUnselected 38 | { 39 | border: solid 1px f0f0f0; 40 | background-color: transparent; 41 | } 42 | .treeSubnodes 43 | { 44 | display: block; 45 | } 46 | .treeSubnodesHidden 47 | { 48 | display: none; 49 | } 50 | .treeNode IMG.treeNoLinkImage, .treeNode IMG.treeLinkImage 51 | { 52 | width: 9px; 53 | height: 9px; 54 | margin-left: 5px; 55 | margin-right: 0px; 56 | } 57 | .treeNode IMG.treeLinkImage 58 | { 59 | cursor: pointer; 60 | } 61 | -------------------------------------------------------------------------------- /docs/help-legacy/root/tree.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/help-legacy/root/tree.js -------------------------------------------------------------------------------- /docs/help-legacy/root/treenodedot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/help-legacy/root/treenodedot.gif -------------------------------------------------------------------------------- /docs/help-legacy/root/treenodeminus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/help-legacy/root/treenodeminus.gif -------------------------------------------------------------------------------- /docs/help-legacy/root/treenodeplus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/help-legacy/root/treenodeplus.gif -------------------------------------------------------------------------------- /docs/help-legacy/todo.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/help-legacy/todo.txt -------------------------------------------------------------------------------- /docs/linux/ubuntu/cs-script_3.27.2.1.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/linux/ubuntu/cs-script_3.27.2.1.deb -------------------------------------------------------------------------------- /docs/linux/ubuntu/cs-script_3.27.5.0_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/linux/ubuntu/cs-script_3.27.5.0_all.deb -------------------------------------------------------------------------------- /docs/linux/ubuntu/cs-script_3.28.8.0_all.deb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oleg-shilo/cs-script.net-framework/932d96d1a06b308cb565b1785dc3dccfcc26036d/docs/linux/ubuntu/cs-script_3.28.8.0_all.deb -------------------------------------------------------------------------------- /docs/linux/ubuntu/version.txt: -------------------------------------------------------------------------------- 1 | 3.28.8.0 --------------------------------------------------------------------------------