Dotnet Script Versions Save

Run C# scripts from the .NET CLI.

1.5.0

6 months ago

Change Log

1.5.0 (11/15/2023)

Full Changelog

Merged Pull Requests

  • fixed deprecated syntax (1/31/2023) #698 (filipw)
  • allow DOTNET_SCRIPT_CACHE_LOCATION to be relative (1/31/2023) #699 (filipw)
  • respect Environment.ExitCode when running the script (4/3/2023) #712 (filipw)
  • Fix greedy parsing of load directive part (5/27/2023) #724 (atifaziz)
  • Remove hardwired return type in ExecuteScriptCommand (6/5/2023) #725 (isaacvale)
  • added a note about default namespaces (6/6/2023) #730 (filipw)
  • Update prerestore.Dockerfile to dotnet 7 (6/20/2023) #731 (andmos)
  • Support .NET 8.0 (11/9/2023) #740 (filipw)
  • conditionally reference appropriate version of Microsoft.Extensions.Logging.Console (11/13/2023) #742 (filipw)
  • Updated to Roslyn 4.8.0-3.final and .NET 8 stable packages/SDK (11/15/2023) #744 (filipw)

Closed Issues

  • Dependency Injection? (6/6/2023) #493 (jamie-tillman)
  • How to use dotnet script within Visual Studio/Rider? (10/3/2023) #562 (EmilyGraceSeville7cf)
  • Memory leak when executing scripts in a loop dynamically in process (6/7/2023) #598 (gimatech)
  • does “dotnet script” (csx) support ASP.NET Core app development? (6/6/2023) #602 (jagchat)
  • Which namespaces are implictly used? (6/6/2023) #647 (maptz)
  • Omnisharp issues with generated project (2/1/2023) #651 (dewinterjack)
  • Bug - DOTNET_SCRIPT_CACHE_LOCATION doesn't work with relative path (1/31/2023) #658 (mcintyre321)
  • dotnet tool install fails without explanation on dotnet 6 (2/1/2023) #679 (carlin-q-scott)
  • (Feature proposal) Ability to specify SDK (11/27/2022) #689 (seesharper)
  • dotnet 7 support? (11/27/2022) #692 (brad-jones)
  • vscode launch file absolute path workaround? (2/8/2023) #697 (adamfk)
  • Setting Environment.ExitCode = 1; doesn't work (4/3/2023) #700 (adamfk)
  • CS0433 erorr (3/31/2023) #702 (nczsl)
  • dotnet-script fails with StateSmith because it uses Microsoft.CodeAnalysis.CSharp 4.5.0.0 or higher (3/9/2023) #703 (adamfk)
  • CS1503 (10/28/2023) #705 (nczsl)
  • CS1624 (10/28/2023) #706 (nczsl)
  • CS0433 (4/4/2023) #708 (nczsl)
  • CS1660 (10/28/2023) #710 (nczsl)
  • dotnet -h doesn't show script command (4/9/2023) #714 (tombohub)
  • Reference to Microsoft.NET.Sdk.Web not work (5/10/2023) #716 (i-mark)
  • Not getting environment from DOTNET_ENVIRONMENT variable (5/10/2023) #718 (charring)
  • csx parsing problems (5/22/2023) #720 (i-mark)
  • Change target framework from net7.0 to net472 (6/5/2023) #729 (amine-aboufirass)
  • System.IO.FileLoadException: Could not load file or assembly (8/16/2023) #736 (m4ss1m0g)
  • syntax highlighting + intellisense not working for project created using dotnet script init (11/6/2023) #737 (amine-aboufirass)
  • dotnet script Could not execute because the specified command or file was not found (10/3/2023) #738 (stealthAngel)

1.4.0

1 year ago

Change Log

1.4.0 (11/26/2022)

Full Changelog

Merged Pull Requests

  • Updated McMaster.Extensions.CommandLineUtils to 3.0.0 (2/4/2022) #640 (badbort)
  • Add missing TFMs to ReadMe (12/27/2021) #650 (devlead)
  • fixed errorDiagnostics check (2/4/2022) #659 (filipw)
  • Fix MacOs build in Azure Pipelines (2/4/2022) #660 (seesharper)
  • Improve documentation to answer #664 (3/21/2022) #665 (Maximetinu)
  • small improvements in the code (3/7/2022) #667 (filipw)
  • Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /src/Dotnet.Script.Core (6/23/2022) #676 (dependabot)
  • Correct order of dotnet script register command in readme (8/4/2022) #678 (CBielstein)
  • Added support for net7.0 (9/19/2022) #682 (seesharper)
  • Set stopAtEntry to false in globaltool.launch.json.template (9/21/2022) #683 (seesharper)
  • Updated a bunch of links and logos (9/21/2022) #684 (filipw)
  • Don't write diagnostics to stdOut (9/26/2022) #686 (seesharper)
  • Remove Newtonsoft.Json (9/27/2022) #687 (seesharper)
  • removed unnecessary CS8073 warnings (10/24/2022) #690 (filipw)
  • updates for .NET 7.0 (11/9/2022) #693 (filipw)
  • Add support for specifying Microsoft.NET.Sdk.Web as the sdk (11/26/2022) #694 (seesharper)

Closed Issues

  • How is dotnet-script different from csi? (9/27/2022) #371 (giggio)
  • Is it possible to reference System packages without using nuget? (9/27/2022) #499 (Metrowerks)
  • How to run a script using CompilationDependencyResolver? (9/27/2022) #515 (dfkeenan)
  • GitLab support for remote scripts (3/24/2022) #566 (EmilySeville7cfg)
  • Cannot add NuGet packages (9/27/2022) #584 (AndiRudi)
  • Question: Using dotnet-script in webapi (9/27/2022) #588 (ryzam)
  • Condition in PackageReference generated from #r "nuget: ... directive (9/27/2022) #600 (dave-yotta)
  • dotnet script doesn't obey version (9/27/2022) #622 (phatcher)
  • Unable to find an entry point named 'CompressionNative_DeflateInit2_' in DLL 'clrcompression.dll' (9/21/2022) #634 (SvenEssentry)
  • Question: How to access content files in NuGet packages (9/27/2022) #639 (JulianBirch)
  • How can I use this tool in code? (5/29/2022) #643 (oliver021)
  • Assembly version issue (9/27/2022) #648 (intrasight)
  • C# language version issue (1/6/2022) #652 (intrasight)
  • Is it possible to use dotnet-script without installing the SDK (using runtime only) ? (1/11/2022) #653 (uffebjorklund)
  • Other ways to enable isolated load context. (1/28/2022) #654 (toras9000)
  • [Question] Possible to access environment variable in #load? (1/29/2022) #655 (MostHated)
  • Add syntax highlight and code completion to CLI (9/27/2022) #656 (iSeiryu)
  • Stop compiler warnings being written to stdout (9/26/2022) #657 (mcintyre321)
  • Newtonsoft.Json 12.0.0 from dotnet-script always imported even when 13.0.1 package installed (9/27/2022) #663 (georgiosd)
  • Question: how to execute scripts directly from the shell as if they were executables. (9/19/2022) #664 (Maximetinu)
  • Question: can I use extension methods? (3/9/2022) #668 (kasimier-vireq)
  • Default using statements (4/25/2022) #669 (DanJBower)
  • Assembly with same name is already loaded exception when run second script (9/27/2022) #671 (nowwwak)
  •  MacOS arm64 debugging in VSCode has a weird behaviour (9/19/2022) #673 (centur)
  • Remove the dependency on Newtonsoft.Json (9/27/2022) #674 (KAW0)
  • Weird problem under Windows Sandbox (9/22/2022) #675 (kasajian)
  • Absolute minimum requirement for running? (9/25/2022) #681 (MostHated)
  • [Linux: Pop_OS 22.04] Updated dotnet-script and am getting Fatal error. Internal CLR error. (0x80131506) (9/26/2022) #685 (MostHated)
  • [Question] Why Dotnet.Script.Core reference more unused nuget package? (9/27/2022) #688 (Cricle)

1.3.1

2 years ago

Change Log

1.3.1 (12/3/2021)

Full Changelog

Merged Pull Requests

1.3.0

2 years ago

Change Log

1.3.0 (11/12/2021)

Full Changelog

Merged Pull Requests

Closed Issues

  • Accessing file from current directory works, but accessing configuration files do not (10/5/2021) #439 (gldraphael)
  • 1.2.0 causes NUnit.Engine.TestEngineActivator.CreateInstance() to return null (8/27/2021) #635 (dave-yotta)
  • Question: EF Core 5 Error (9/18/2021) #641 (andrebarsotti)

1.2.1

2 years ago

Change Log

1.2.1 (8/26/2021)

Full Changelog

Merged Pull Requests

1.2.0

2 years ago

Change Log

1.2.0 (8/25/2021)

Full Changelog

Merged Pull Requests

  • Add Dockerfile for networkless container support; Add ghcr docker auto deploy workflow (6/4/2021) #617 (zekroTJA)
  • Don't stop at entry when debugging in VS Code (8/5/2021) #628 (seesharper)
  • Test issues when running from a folder containing a space character in its name (8/18/2021) #629 (hrumhurum)
  • Memory leak in AppDomain.AssemblyResolve event subscription (8/18/2021) #630 (hrumhurum)
  • Ability to isolate script execution with AssemblyLoadContext (8/25/2021) #631 (hrumhurum)
  • drop support for .NET Core 2.1 (8/23/2021) #633 (filipw)

Closed Issues

  • R2R, Single File and IL Link Trim support (8/18/2021) #490 (gdmka)
  • Execution cache file is per script folder leading to error when running scripts in parallel (5/1/2021) #540 (mungojam)
  • Allow CancellationToken in Execute method (5/5/2021) #612 (sean-mcl)
  • Metadata file 'System.Data.Odbc' could not be found (5/5/2021) #619 (stevenkc)
  • ODBC need runding under x86 (5/5/2021) #620 (stevenkc)
  • Unable to install dotnet-script (5/7/2021) #621 (drewburlingame)
  • Consider adding Roll Forward policy for dotnet-script tool (6/6/2021) #624 (GlebChili)
  • Debugging in Visual Studio Code no longer works (7/18/2021) #627 (DanielEgbers)
  • Can't reference nuget packages (8/20/2021) #632 (michaelalpine)

1.1.0

3 years ago

Change Log

1.1.0 (5/1/2021)

Full Changelog

Merged Pull Requests

  • fixed CompilationDependencyResolver for .NET 5.0 (11/11/2020) #591 (filipw)
  • updated to Roslyn 3.8.0 (11/18/2020) #595 (filipw)
  • cache script per file instead of per directory (3/8/2021) #596 (DanielEgbers)
  • corrected OmniSharp.json (12/12/2020) #599 (filipw)
  • Bugfix-Initialize folder with whitespace (2/9/2021) #606 (seesharper)
  • updated to Roslyn 3.9.0 (3/12/2021) #609 (filipw)
  • Bump Microsoft packages to 5.0.0 (4/22/2021) #614 (seesharper)
  • added strong naming (5/1/2021) #618 (filipw)

Closed Issues

  • Error on running script (unable to restore packages) (11/17/2020) #593 (hitochan777)
  • nuget packages not loading (12/18/2020) #601 (rsquarev)
  • .NET 5 support (1/4/2021) #603 (AmSmart)
  • dotnet-script init error when setting permissions when working directory path includes a space. (2/9/2021) #605 (easp)
  • Unable to use C# 8 using statements (3/22/2021) #611 (dasMulli)
  • FileLoadException when running C# script (4/22/2021) #613 (badclone)

1.0.1

3 years ago

Change Log

1.0.1 (11/10/2020)

Full Changelog

Merged Pull Requests

1.0.0

3 years ago

Change Log

1.0.0 (11/10/2020)

Full Changelog

Merged Pull Requests

  • Have eval read code from "stdin" when code argument is absent (6/26/2020) #547 (atifaziz)
  • Simplify cache check (in "ExecuteScriptCommand.GetLibrary") (6/6/2020) #548 (atifaziz)
  • Add section on cache location in README (6/6/2020) #550 (atifaziz)
  • Log when running from cache (6/19/2020) #551 (atifaziz)
  • Allow running gzip-ped script from a URL (8/7/2020) #567 (atifaziz)
  • Validate remote script MIME type early (8/10/2020) #568 (atifaziz)
  • Accept content-encoding of "gzip" for remote scripts (11/2/2020) #569 (atifaziz)
  • Fix Dockerfile to use .NET Core SDK 3.1 as base image (8/6/2020) #570 (atifaziz)
  • Upgrade to Roslyn 3.7.0 (8/10/2020) #572 (filipw)
  • Ignore global.json in script folder (8/11/2020) #573 (seesharper)
  • Include command output in restore exception message (10/26/2020) #585 (DanielEgbers)
  • Support remote scripts with empty/null Content Type (11/2/2020) #587 (AndrewMJordan)
  • Support for .Net 5 (11/10/2020) #589 (seesharper)

Closed Issues

  • nuget references not recognized when using Visual Studio Code (6/19/2020) #531 (ChiefInnovator)
  • Have "eval" without code arg take code from standard input (6/29/2020) #546 (atifaziz)
  • Error after I added an environment variable (7/3/2020) #549 (d0wser)
  • Load once directive (6/30/2020) #553 (Acmion)
  • Eval command doesn't work properly (6/26/2020) #558 (alvinseville7cf)
  • Performance doubt (7/13/2020) #563 (GF-Huang)
  • "global.json" interferes with "dotnet restore" of script (8/11/2020) #571 (atifaziz)
  • How to suppress error NU1605 in my script (8/11/2020) #574 (yan0lovesha)
  • Remote script file cannot execute if ContentType is missing (11/2/2020) #586 (AndrewMJordan)

0.53.0

3 years ago

Change Log

0.53.0 (6/5/2020)

Full Changelog

Merged Pull Requests

  • Fix typos - minor (5/11/2020) #536 (omidkrad)
  • updated to Roslyn 3.6.0 (5/25/2020) #538 (filipw)
  • downgrade NuGet.ProjectModel to 5.2.0 (6/3/2020) #542 (filipw)
  • 0.53.0 bump (6/4/2020) #543 (filipw)
  • Recognize pinned pre-release package references (6/5/2020) #544 (atifaziz)
  • Discard script submission result (intentionally) (6/5/2020) #545 (atifaziz)

Closed Issues

  • Resolving nuget packages in script package (4/30/2020) #510 (sanjuroo)
  • Microsoft.Extensions.Logging support (4/22/2020) #533 (lp-brainspire)
  • Suggestion: use #load to include also remote .csx scripts (4/28/2020) #535 (dmantovani73)