<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Scriptcs on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/scriptcs/</link>
    <description>Recent content in Scriptcs on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 17 Jun 2016 08:10:01 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/scriptcs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Implementing custom #load behavior in Roslyn scripting</title>
      <link>https://www.strathweb.com/2016/06/implementing-custom-load-behavior-in-roslyn-scripting/</link>
      <pubDate>Fri, 17 Jun 2016 08:10:01 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2016/06/implementing-custom-load-behavior-in-roslyn-scripting/</guid>
      <description>&lt;p&gt;&lt;em&gt;#load&lt;/em&gt; directives in C# scripts are intended to allow you to reference a C# script source file from another C# script. As an author of a host application, in which the Roslyn scripting would be embedded, it&amp;rsquo;s up to you to define how &lt;em&gt;#load&lt;/em&gt; should behave.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s have a look at the process of doing that.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Adding C# Scripting to Your Development Arsenal</title>
      <link>https://www.strathweb.com/2015/12/adding-c-scripting-to-your-development-arsenal/</link>
      <pubDate>Tue, 01 Dec 2015 17:44:51 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2015/12/adding-c-scripting-to-your-development-arsenal/</guid>
      <description>As part of my efforts to popularize C# scripting in the .NET community (which, hopefully, you have noticed by following this blog, my Twitter or my Github) and in celebration of the first stable release of Roslyn scripting packages on Nuget yesterday, I published a guest post at Canadian Developer Connection blog - Adding C# Scripting to Your Development Arsenal.
You can read the post here, and hopefully you find it useful.</description>
    </item>
    
    <item>
      <title>Running C# scripts and snippets in Visual Studio Code with scriptcs</title>
      <link>https://www.strathweb.com/2015/11/running-c-scripts-and-snippets-in-visual-studio-code-with-scriptcs/</link>
      <pubDate>Thu, 26 Nov 2015 04:50:28 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2015/11/running-c-scripts-and-snippets-in-visual-studio-code-with-scriptcs/</guid>
      <description>&lt;p&gt;Recently &lt;a href=&#34;https://github.com/microsoft/vscode&#34;&gt;Microsoft open sourced the Code editor&lt;/a&gt; and I think a lot of people would agree that it&amp;rsquo;s really awesome. The UI based on Electron and the Monaco editor previously used in &lt;a href=&#34;https://www.visualstudio.com/en-us/products/visual-studio-team-services-vs.aspx&#34;&gt;Visual Studio Online&lt;/a&gt; is really snappy and works great.&lt;/p&gt;
&lt;p&gt;Visual Studio Code can also now be extended via plugins - and when that was announced, I thought why not make something for scriptcs? There already is a scriptcs plugin for &lt;a href=&#34;https://github.com/scriptcs/scriptcs-sublime&#34;&gt;Sublime Text&lt;/a&gt; and for &lt;a href=&#34;https://atom.io/packages/atom-runner&#34;&gt;Atom&lt;/a&gt;, so it only makes sense to have one for Visual Studio Code.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Running a C# REPL in a DNX application with scriptcs</title>
      <link>https://www.strathweb.com/2015/09/running-a-c-repl-in-a-dnx-application-with-scriptcs/</link>
      <pubDate>Tue, 15 Sep 2015 21:05:44 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2015/09/running-a-c-repl-in-a-dnx-application-with-scriptcs/</guid>
      <description>&lt;p&gt;One of the cool things that &lt;a href=&#34;https://github.com/scriptcs/scriptcs&#34;&gt;scriptcs&lt;/a&gt; allows you to do, is that you can embed it into your application and allow execution of C# scripts. There are even some great resources on that out there, like &lt;a href=&#34;http://madstt.dk/endeavours-with-scriptcs-hosting/&#34;&gt;this awesome post by Mads&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The same applies to the REPL functionality - you don&amp;rsquo;t have to use &lt;em&gt;scriptcs.exe&lt;/em&gt; to access the REPL - you can use the scriptcs Nuget packages to create a REPL inside your app.&lt;/p&gt;
&lt;p&gt;And because there aren&amp;rsquo;t that many resources (if any) on how to host a scriptcs REPL, today I wanted to show you just that. But for a more interesting twist, we&amp;rsquo;ll do that inside a DNX application.&lt;/p&gt;
&lt;p&gt;There are many reasons why DNX is awesome, and why you&amp;rsquo;d want to use it, but especially because, through the &lt;em&gt;project.json&lt;/em&gt; project system, it has a much improved way of referencing and loading dependencies and Nuget packages - and we can leverage that mechanism to feed assemblies into our REPL.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Hacking DNX to run C# scripts</title>
      <link>https://www.strathweb.com/2015/09/hacking-dnx-to-run-c-scripts/</link>
      <pubDate>Tue, 01 Sep 2015 13:29:49 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2015/09/hacking-dnx-to-run-c-scripts/</guid>
      <description>&lt;p&gt;Because of my considerable community involvement in promoting C# scripting (i.e. &lt;a href=&#34;https://github.com/scriptcs/scriptcs&#34;&gt;here&lt;/a&gt; or &lt;a href=&#34;https://github.com/OmniSharp/omnisharp-roslyn&#34;&gt;here&lt;/a&gt;), I thought the other day, why not attempt to run C# scripts using DNX?&lt;/p&gt;
&lt;p&gt;While out of the box, DNX only compiles proper, traditional C# only, thanks to the compilation hooks it exposes, it is possible to intercept the compilation object prior to it being actually emitted, which allows you to do just about anything - including run C# scripts.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s explore more.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Scriptcs gets new REPL commands and is now better than ever</title>
      <link>https://www.strathweb.com/2014/12/scriptcs-gets-new-repl-commands-now-better-ever/</link>
      <pubDate>Tue, 23 Dec 2014 15:52:12 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2014/12/scriptcs-gets-new-repl-commands-now-better-ever/</guid>
      <description>&lt;p&gt;Yesterday the scriptcs project got an &lt;a href=&#34;https://github.com/scriptcs/scriptcs/pull/830&#34;&gt;little injection of awesomeness&lt;/a&gt; through a set of new REPL commands we have added. You can now conveniently access a bunch of contextual information about your REPL session - the idea is to make your work with the REPL smoother, more productive and, of course, more enjoyable. Let&amp;rsquo;s quickly walk through them in this post.&lt;/p&gt;
&lt;p&gt;By the way, it&amp;rsquo;s a good moment to remind that the REPL command infrastructure is fully extensible - so you can easily build up your own commands. &lt;a href=&#34;http://vimeo.com/97344529&#34;&gt;Watch my talk&lt;/a&gt; from NDC Oslo if you are interested, there is an example in there.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Using ConfigR as a Configuration Source in ASP.NET vNext</title>
      <link>https://www.strathweb.com/2014/10/using-configr-configuration-source-asp-net-vnext/</link>
      <pubDate>Tue, 28 Oct 2014 14:37:09 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2014/10/using-configr-configuration-source-asp-net-vnext/</guid>
      <description>&lt;p&gt;One of the cool things about ASP.NET vNext is that it introudces a &lt;a href=&#34;https://github.com/aspnet/Configuration&#34;&gt;configuration abstraction&lt;/a&gt;, &lt;em&gt;Microsoft.Framework.ConfigurationModel&lt;/em&gt; over your application&amp;rsquo;s configuration.&lt;/p&gt;
&lt;p&gt;This is going to replace the old school, limiting approach of forcing you to work with XML configuration only through the &lt;em&gt;System.Configuration&lt;/em&gt; classes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://twitter.com/loudej&#34;&gt;Louis DeJardin&lt;/a&gt; has blogged about the ideas behind the isolation of Configuration in his &lt;a href=&#34;http://whereslou.com/2014/05/23/asp-net-vnext-moving-parts-iconfiguration/&#34;&gt;blog post&lt;/a&gt;. In the meantime, let&amp;rsquo;s have a look at how we could enable a &lt;a href=&#34;https://github.com/config-r/config-r&#34;&gt;ConfigR&lt;/a&gt;-based configuration too.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Easier Redis development with scriptcs and ServiceStack.Redis powered C# REPL</title>
      <link>https://www.strathweb.com/2013/12/easier-redis-development-scriptcs-servicestack-redis-powered-c-repl/</link>
      <pubDate>Mon, 09 Dec 2013 07:53:57 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2013/12/easier-redis-development-scriptcs-servicestack-redis-powered-c-repl/</guid>
      <description>&lt;p&gt;In my current project I am working a lot with Redis on the back end. What I have found extremely useful is the ability to work with Redis directly from its REPL (&lt;em&gt;redis-cli&lt;/em&gt;), to instantly check or reset the objects stored there.&lt;/p&gt;
&lt;p&gt;However, working in the C# environment, the basic &lt;em&gt;redis-cli&lt;/em&gt; is definitely not enough to facilitate productive development.&lt;/p&gt;
&lt;p&gt;Enter &lt;a href=&#34;https://github.com/scriptcs/scriptcs&#34;&gt;scriptcs&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Extend Glimpse on the fly – scriptcs code execution tab in Glimpse</title>
      <link>https://www.strathweb.com/2013/10/extend-glimpse-fly-scriptcs-code-execution-tab-glimpse/</link>
      <pubDate>Sun, 06 Oct 2013 10:47:33 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2013/10/extend-glimpse-fly-scriptcs-code-execution-tab-glimpse/</guid>
      <description>&lt;p&gt;In &lt;a href=&#34;http://www.scriptcs.net&#34;&gt;scriptcs&lt;/a&gt;, one of the things we have been paying lots of attention to recently, is the hosting story. Scriptcs CLI is simply just one of the clients using the core scriptcs libraries - which can be used to embed the rich scriptcs code parsing and execution capabilities in any app.&lt;/p&gt;
&lt;p&gt;This weekend I put together a small &lt;a href=&#34;http://www.getglimpse.com&#34;&gt;Glimpse plugin&lt;/a&gt; which uses scriptcs hosting, and can be used for executing arbitrary code against the context of your ASP.NET application.&lt;/p&gt;
&lt;p&gt;More after the jump.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Scriptcs and multiline REPL!</title>
      <link>https://www.strathweb.com/2013/07/scriptcs-and-multiline-repl/</link>
      <pubDate>Tue, 23 Jul 2013 18:48:44 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2013/07/scriptcs-and-multiline-repl/</guid>
      <description>&lt;p&gt;A while ago, we &lt;a href=&#34;http://codebetter.com/glennblock/2013/05/07/scriptcs-gets-a-repl/&#34;&gt;added&lt;/a&gt; a killer REPL feature to the &lt;a href=&#34;https://github.com/scriptcs/scriptcs&#34;&gt;scriptcs project&lt;/a&gt;. Recently, we followed it up with adding support for one of the most popular requested features - multiline constructs for the REPL.&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s not yet available in the stable version available via Chocolatey or on the master branch on Github, but you can get a taste of how it looks and feels by installing the nightly build or building from dev branch directly.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s have a quick look together.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>scriptcs and using Azure Mobile Services from your scripts</title>
      <link>https://www.strathweb.com/2013/05/scriptcs-and-using-azure-mobile-services-from-your-scripts/</link>
      <pubDate>Mon, 13 May 2013 03:33:40 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2013/05/scriptcs-and-using-azure-mobile-services-from-your-scripts/</guid>
      <description>&lt;p&gt;Hopefully by now you have already heard about the &lt;a href=&#34;http://github.com/scriptcs&#34;&gt;sriptcs&lt;/a&gt; project, which allows you to write script based applications with C# and Nuget.&lt;/p&gt;
&lt;p&gt;If not, have a look at the &lt;a href=&#34;https://github.com/scriptcs/scriptcs&#34;&gt;readme&lt;/a&gt; and the great &lt;a href=&#34;http://www.hanselman.com/blog/ProjectlessScriptedCWithScriptCSAndRoslyn.aspx&#34;&gt;introduction post&lt;/a&gt; by Scott Hanselman to get started.&lt;/p&gt;
&lt;p&gt;Actually, just today, we have released &lt;a href=&#34;http://chocolatey.org/packages/ScriptCs/&#34;&gt;v.0.4 of scriptcs&lt;/a&gt;! To celebrate that, let&amp;rsquo;s revisit one of our favorite topics - Azure Mobile Services - and how you can use it with &lt;em&gt;scriptcs&lt;/em&gt;.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
