<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Scripting on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/scripting/</link>
    <description>Recent content in Scripting on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 24 Nov 2021 14:18:18 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/scripting/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>dotnet-script 1.3 is out with .NET 6.0 support</title>
      <link>https://www.strathweb.com/2021/11/dotnet-script-1-3-is-out-with-net-6-0-support/</link>
      <pubDate>Wed, 24 Nov 2021 14:18:18 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2021/11/dotnet-script-1-3-is-out-with-net-6-0-support/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://github.com/filipw/dotnet-script/releases/tag/1.3.0&#34;&gt;Last week&lt;/a&gt; we released version 1.3 of &lt;a href=&#34;https://github.com/filipw/dotnet-script&#34;&gt;dotnet-script&lt;/a&gt;. The latest release introduces support for .NET 6.0 and C# 10 and is available, as usually, through Github releases and on Nuget. You will need to have at least the .NET SDK &lt;a href=&#34;https://dotnet.microsoft.com/download/dotnet/6.0&#34;&gt;6.0.100&lt;/a&gt; installed.&lt;/p&gt;
&lt;p&gt;The related language services in OmniSharp (e.g. C# extension for VS Code) have already been updated accordingly a while ago.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>dotnet-script 1.2 is out with assembly isolation feature</title>
      <link>https://www.strathweb.com/2021/09/dotnet-script-1-2-is-out-with-assembly-isolation-feature/</link>
      <pubDate>Thu, 30 Sep 2021 14:33:15 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2021/09/dotnet-script-1-2-is-out-with-assembly-isolation-feature/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://github.com/filipw/dotnet-script/releases/tag/1.2.0&#34;&gt;Last month&lt;/a&gt; we released version 1.2 of &lt;a href=&#34;https://github.com/filipw/dotnet-script&#34;&gt;dotnet-script&lt;/a&gt;. This was already 36th release of the tool and I am proud to say all the dotnet-script releated packages on &lt;a href=&#34;https://www.nuget.org/packages?q=dotnet-script&#34;&gt;Nuget&lt;/a&gt; have passed 1 million downloads - thanks a lot!&lt;/p&gt;
&lt;p&gt;The latest release (which already has a 1.2.1 patch too), contains several useful bug fixes, including a memory leak and one excellent new feature - assembly isolation.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>dotnet-script 1.0.0 released – with support for .NET 5.0 and C# 9</title>
      <link>https://www.strathweb.com/2020/11/dotnet-script-1-0-0-released-with-support-for-net-5-0-and-c-9/</link>
      <pubDate>Wed, 11 Nov 2020 19:14:56 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2020/11/dotnet-script-1-0-0-released-with-support-for-net-5-0-and-c-9/</guid>
      <description>&lt;p&gt;To celebrate the release of &lt;a href=&#34;https://devblogs.microsoft.com/dotnet/announcing-net-5-0/&#34;&gt;.NET 5.0&lt;/a&gt;, which happened yesterday, we are happy to announce the release of &lt;a href=&#34;https://github.com/filipw/dotnet-script&#34;&gt;dotnet-script&lt;/a&gt; - with support for .NET 5.0 and C# 9.&lt;/p&gt;
&lt;p&gt;In addition to that, we have decided that after such a long time since we started this project off, and a rather stable public API, it is high time to celebrate this .NET 5.0 release by additionally moving dotnet-script to version 1.0.0.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>dotnet-script 0.27.0 is out – with a ton of features!</title>
      <link>https://www.strathweb.com/2018/11/dotnet-script-0-27-0-is-out-with-a-ton-of-features/</link>
      <pubDate>Thu, 08 Nov 2018 20:59:15 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2018/11/dotnet-script-0-27-0-is-out-with-a-ton-of-features/</guid>
      <description>&lt;p&gt;It&amp;rsquo;s that time again, the new &lt;a href=&#34;https://github.com/filipw/dotnet-script&#34;&gt;dotnet-script&lt;/a&gt; release, version 0.27.0 is out. It&amp;rsquo;s been 2+ months since the last release so this one is fully packed with great features.&lt;/p&gt;
&lt;p&gt;You can get it by running &lt;em&gt;dotnet tool install dotnet-script -g&lt;/em&gt; (if you don&amp;rsquo;t have it installed yet) or &lt;em&gt;dotnet tool update dotnet-script -g&lt;/em&gt; (if you just need an update).&lt;/p&gt;
&lt;p&gt;Let me quickly walk you through some of them.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Easy way to create a C# lambda expression from a string (with Roslyn)</title>
      <link>https://www.strathweb.com/2018/01/easy-way-to-create-a-c-lambda-expression-from-a-string-with-roslyn/</link>
      <pubDate>Mon, 29 Jan 2018 13:51:02 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2018/01/easy-way-to-create-a-c-lambda-expression-from-a-string-with-roslyn/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve worked on quite a lot of projects over the years, with many different teams, and one of the questions that keeps coming back to me over and over with a high degree of regularity is how to load a C# lambda from a string - for example from a configuration file.&lt;/p&gt;
&lt;p&gt;This is not surprising, because being able to do that can give you a tremendous amount of flexibility in your code, as it would (for the lack of better word) unlock the possibility to alter business logic from the configuration level, without having to recompile and redeploy your application.&lt;/p&gt;
&lt;p&gt;Historically, this has been possible but also quite a painful task. Today I wanted to show you a remarkably simple solution to this problem - with the help of the Roslyn compiler Nuget packages.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>C# REPL for .NET Core 2.0 and #load support from Nuget – dotnet-script 0.16 is out!</title>
      <link>https://www.strathweb.com/2017/12/c-repl-for-net-core-2-0-and-load-support-from-nuget-0-16-dotnet-script-is-out/</link>
      <pubDate>Mon, 04 Dec 2017 14:46:45 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2017/12/c-repl-for-net-core-2-0-and-load-support-from-nuget-0-16-dotnet-script-is-out/</guid>
      <description>&lt;p&gt;Last week, together with [Bernhard][1] we released version [0.16 of dotnet-script][2], the .NET Core 2.0 C# script runner. I&amp;rsquo;d like to summarize the new features in this short blog post - as there are two highlights of this release - which we are very excited about!&lt;/p&gt;
&lt;p&gt;The project now offers a C# REPL (interactive mode) which can be access when launching &lt;em&gt;dotnet-script&lt;/em&gt; without any arguments. All the features of scripting are supported in the interactive mode, including support for adding Nuget references via &lt;em&gt;#r &amp;ldquo;nuget: {package}&amp;rdquo;&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The second large feature is support for &lt;em&gt;#load &amp;ldquo;nuget: {package}&amp;rdquo;&lt;/em&gt;, which works similar to its &lt;em&gt;#r&lt;/em&gt; counterpart, except not for assemblies but for referencing CSX files from Nuget.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>C# Script Runner for .NET Core 2.0!</title>
      <link>https://www.strathweb.com/2017/11/c-script-runner-for-net-core-2-0/</link>
      <pubDate>Thu, 02 Nov 2017 13:12:31 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2017/11/c-script-runner-for-net-core-2-0/</guid>
      <description>&lt;p&gt;As you &lt;a href=&#34;https://www.strathweb.com/2017/08/dotnet-script-0-11-out-with-inline-nuget-support/&#34;&gt;may have read&lt;/a&gt; on this blog before, together with &lt;a href=&#34;https://twitter.com/bernhardrichter&#34;&gt;Bernhard&lt;/a&gt;, we have been working on a .NET Core and .NET CLI C# script runner, called &lt;a href=&#34;https://github.com/filipw/dotnet-script&#34;&gt;dotnet-script&lt;/a&gt;, for a while now. Today I have a big announcement to make - we have recently released .NET Core 2.0 and .NET Standard 2.0 support!&lt;/p&gt;
&lt;p&gt;These changes are part of &lt;a href=&#34;https://github.com/filipw/dotnet-script/releases/tag/0.14.0&#34;&gt;0.14.0&lt;/a&gt; release that came out 3 weeks ago. We didn&amp;rsquo;t want to promote it that much, because - as it&amp;rsquo;s normally the case with .NET Core related stuff - the accompanying tooling wasn&amp;rsquo;t ready. In other words, there was no robust language services or intellisense story for writing .NET Core 2.0 scripts.&lt;/p&gt;
&lt;p&gt;However, we are now ready with OmniSharp tooling too, which means you can enjoy C# scripting on .NET Core 2.0 in VS Code as long as you install the latest &lt;a href=&#34;https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.13.0-beta4&#34;&gt;beta&lt;/a&gt; release of C# for VS Code. In parallel, we also already released a &lt;a href=&#34;https://github.com/filipw/dotnet-script/releases/tag/0.15.0&#34;&gt;0.15.0&lt;/a&gt; version of dotnet-script.&lt;/p&gt;
&lt;p&gt;Here is how to get started and a summary of what is new in 0.14.0 and 0.15.0.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>dotnet-script 0.11 out – with inline Nuget support</title>
      <link>https://www.strathweb.com/2017/08/dotnet-script-0-11-out-with-inline-nuget-support/</link>
      <pubDate>Wed, 09 Aug 2017 11:12:44 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2017/08/dotnet-script-0-11-out-with-inline-nuget-support/</guid>
      <description>&lt;p&gt;Yesterday I released, thanks to the great help of &lt;a href=&#34;https://twitter.com/bernhardrichter&#34;&gt;Bernhard&lt;/a&gt; - version 0.11 of &lt;a href=&#34;https://github.com/filipw/dotnet-script/releases&#34;&gt;dotnet-script&lt;/a&gt;, the C# script runner for .NET Core.&lt;/p&gt;
&lt;p&gt;It is the biggest release yet - with the highlight feature being the ability to use inline Nuget packages.&lt;/p&gt;
&lt;p&gt;Here is the overview of what&amp;rsquo;s in there.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Writing C# build scripts with FAKE, OmniSharp and VS Code</title>
      <link>https://www.strathweb.com/2016/12/writing-c-build-scripts-with-fake-omnisharp-and-vs-code/</link>
      <pubDate>Sun, 04 Dec 2016 11:28:47 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2016/12/writing-c-build-scripts-with-fake-omnisharp-and-vs-code/</guid>
      <description>&lt;p&gt;In this blog post I&amp;rsquo;d like to show an extremely - in my opinion - productive way of writing build scripts using C#. As a basis, we&amp;rsquo;ll use the excellent core FAKE library called &lt;a href=&#34;https://www.nuget.org/packages/FAKE.Lib/&#34;&gt;FakeLib&lt;/a&gt;, which is written F# and consume it in C# scripts.&lt;/p&gt;
&lt;p&gt;Sure, there are other projects/task runners like &lt;a href=&#34;https://github.com/cake-build/cake&#34;&gt;Cake&lt;/a&gt; or &lt;a href=&#34;https://github.com/bau-build/bau&#34;&gt;Bau&lt;/a&gt; that allow you to write C# build scripts (few more actually out there) but the approach I&amp;rsquo;d like to show you today, is I think the most productive of all, so bear with me.&lt;/p&gt;
&lt;p&gt;More after the jump.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
