Questions tagged [scriptcs]

scriptcs makes it easy to write and execute C#, either by using the REPL or your simple text editor. It integrates with NuGet to easily pull down packages for use in your scripts.

56 questions
1
vote
0 answers

Visual Studio Code output window stays empty using scriptcsRunner

I've been trying to fiddle around with Scriptcs and since I don't always want to fire up Visual Studio and use the interactive window, I'd tried my hand with Visual Studio code. These are the steps I've taken: @powershell -NoProfile…
Marco
  • 22,856
  • 9
  • 75
  • 124
1
vote
2 answers

How to run scriptcs without installation? Make portable/standalone scriptcs (csx)

Is it possible to make a portable scriptcs? I want to write a script and fire it from console/bat file on another machine (with the same OS). I imagine this should look like: SomeKindOfScriptCsExecutor.exe myscript.csx -param1…
piotrwest
  • 2,098
  • 23
  • 35
1
vote
0 answers

Cannot compile custom AutofacNancyBootstrapper with ScriptCs on Mac

I'm struggling to compile the following file Bootstrapper.csx on the latest version ScriptCs (v0.14.0) on MacOSX: using Autofac; using Nancy.Bootstrappers.Autofac; public class Bootstrapper : AutofacNancyBootstrapper { private readonly…
Tod Thomson
  • 4,773
  • 2
  • 33
  • 33
1
vote
2 answers

SubmileText 3 and ScriptCS Intellisense

Is there a way to have a C# Intellisense for ScriptCS files in a Submile Text . I tried to combine OmniSharpSublime plugin with ScriptCS but that doesn't work.
user2932893
  • 439
  • 4
  • 14
1
vote
2 answers

FluentAutomation + scriptcs not working

I am trying to get scriptcs + FluentAutomation to work having read Scott Hanselmans blog post: http://www.hanselman.com/blog/NuGetPackageOfTheWeekFluentAutomationForAutomatedTestingOfWebApplications.aspx Thing is, the demo code on the fluent…
user156888
1
vote
2 answers

Automate deployment of Excel AddIn

I have created an Excel Add-in using AddIn Express .Net component. Business users install the add-in using the MSI provided by the build team. Everytime we make any changes to the product and provide it to business users, they need to manually…
Prasad Honrao
  • 211
  • 3
  • 18
1
vote
1 answer

Not able to run Scriptcs scripts in Atom using atom-runner

I am trying to setup Atom editor on Mac for use with ScriptCs scripts. So I followed the guide to do that. execvp(): No such file or directory I have scriptcs as an alias in my .profile. Running scriptcs test.csx in the terminal used to launch…
driis
  • 161,458
  • 45
  • 265
  • 341
1
vote
0 answers

scriptcs - some assemblies failed to load

I tried to run the following example https://github.com/scriptcs-contrib/scriptcs-servicestack/tree/master/sample by creating both files (start.csx and packages.config) and running the following commands scriptcs -install scriptcs start.csx and ran…
Robert Stoll
  • 371
  • 3
  • 11
1
vote
1 answer

Using Scriptcs in ASP.NET MVC Controller with injected dependencies

I am trying to add Scriptcs support to an ASP.NET MVC application. I have a ScriptServices inspired by https://github.com/filipw/Glimpse.ScriptCs/blob/master/Glimpse.ScriptCs/ScriptCsHost.cs. In my controller, I have a working simple that looks like…
Igor Kulman
  • 16,211
  • 10
  • 57
  • 118
1
vote
1 answer

Roslyn error installing scriptcs

I'm installing scriptcs using Chocolatey, but I keep getting the error seen in the picture. How can I fix this problem?
Rasmus Christensen
  • 8,321
  • 12
  • 51
  • 78
0
votes
0 answers

SOLVED_Linux, VisualCode, C#: scriptcs: not found, exited with code127

I'm new to programming, I'm following a programming class where we learn C# using Visual Studio on Windows. I wanted to practice also at home on my Linux Mint PC. I've built a simple program where the user inputs two numbers, and the program…
0
votes
1 answer

scriptcs always giving an error saying that I should use System library to terminate the program

First of all, I'm new to C# (I mean very new, I learned it yesterday.). I'm able to compile and run my code in Visual Studio 2019. And as Visual Studio 2019 is working slow on my computer, I decided to install C# extension to VS Code. But it doesn't…
Yılmaz Alpaslan
  • 327
  • 3
  • 16
0
votes
1 answer

Loading scripts based off conditions

I am currently working with a bunch of c sharp scripts and I want to implement this such that each script will be quite unique for a certain task . Which is why I want to #load certain script when a certain condition is fulfilled. But seems like by…
Devss
  • 67
  • 7
0
votes
0 answers

Is there a specific reason why we don't explicitly specify type of variable in csx scripts and use var at all times?

I have been working very closely with csx lately and something that I noticed was that whenever we specify a variable it always used var name = "Hello World"; instead of string name = "Hello World"; . Is this due to a certain convention that…
Devss
  • 67
  • 7
0
votes
1 answer

How to use #load in scriptcs for an Azure function

I downloaded the code of an Azure Function created in the portal. Now I'm tryng to load a class in the main file (run.csx) using in the first line: #load "..\shared\data.csx" but i get the error: "run.csx(1,7): error CS1504: Source file…
Elelio
  • 287
  • 5
  • 18