Skip to content

Releases: WeihanLi/dotnet-exec

0.36.0

19 Apr 07:47

Choose a tag to compare

✨ Features

  • Added support for the #: include directive for file-based apps, making it easier to split code across multiple files
  • Added support for C# preview versions

⚡ Improvements

  • Improved execution performance by parallelizing parts of reference resolution and compilation
  • Optimized reference resolution caching for better concurrency and lower repeated overhead
  • Added benchmark projects for compilation and reference resolution performance measurement

🔧 Build & CI

  • Switched GitHub Actions .NET SDK setup to WeihanLi/dotnet-install@v0.2.0
  • Updated CI/testing targets to use newer .NET versions
  • Added Copilot setup workflow and repository agent guidance

📦 Dependencies

  • Updated several dependencies, including:
    • NuGet.Protocol to 7.3.1
    • System.CommandLine to 2.0.6
    • WeihanLi.Common to 1.0.88
    • GitHubActionsTestLogger to 3.0.3
    • Xunit.DependencyInjection to 11.2.1
    • Added BenchmarkDotNet for performance testing

🧹 Cleanup

  • Removed the dotnet-exec-mcp project from the solution and repository
  • Renamed the Roslyn NuGet config file to nuget.config
  • Added Microsoft.CodeAnalysis.Analyzers to package source mapping

✅ Tests

  • Added integration test coverage for the new multi-file include scenario
  • Added performance benchmark projects for compilation and reference resolution

Full Changelog: 0.35.0...0.36.0

0.35.0

14 Mar 04:58

Choose a tag to compare

What's Changed

🚀 Features

  • Add .NET 11 support
  • Update supported target frameworks to net10.0 and net11.0
  • Prefer net11.0 artifacts in build outputs

💥 Breaking Changes

  • Remove net8.0 support
  • Remove net9.0 support

🐳 Docker

  • Update Docker SDK image to .NET 11 preview
  • Update Docker runtime image to .NET 11 preview
  • Publish Docker artifacts targeting net11.0

🔧 Build & CI

  • Update actions/checkout to v6
  • Update actions/setup-dotnet to v5
  • Add .NET 11 to CI/docs/release workflow SDK matrix
  • Update pre-push hook to run tests via dotnet-exec ./build/build.cs -- --target=test
  • Update build scripts to prefer net11.0 artifacts

📦 Dependencies

  • Bump Roslyn from 5.0.0 to 5.3.0
  • Bump Microsoft.Extensions.Hosting to 10.0.5
  • Bump ModelContextProtocol to 1.1.0
  • Bump NuGet.Protocol to 7.3.0
  • Bump System.CommandLine to 2.0.5
  • Bump Xunit.DependencyInjection to 11.2.0
  • Update WeihanLi.Common
  • Remove conditional System.Linq.AsyncEnumerable dependency for older target frameworks

🧹 Refactoring & Cleanup

  • Adopt newer collection expression style in several places
  • Update .editorconfig to prefer collection expressions
  • Minor code formatting and cleanup

📚 Documentation

  • Update framework examples from older targets to net10.0
  • Refresh English and Chinese docs to match current supported frameworks

Breaking Notes

If you are currently using net8.0 or net9.0, please migrate to net10.0 or net11.0 before upgrading.

Full Changelog: 0.34.0...0.35.0

0.34.0

23 Jan 15:57

Choose a tag to compare

Highlights

  • New alias management command: alias reset to restore default aliases.
  • New built-in helpers: base64-decode and sha1.
  • Upgraded dependencies across hosting, command-line, and common libraries.
  • Testing stack refreshed to use GitHub Actions test logger and MTP-compatible xUnit packages.

New Features

  • Alias management:
    • Added alias reset command to restore aliases to the default set.
      • Usage:
        dotnet exec alias reset
        
  • Built-in expressions:
    • base64-decode: decodes a Base64 string to UTF-8.
      • Example:
        dotnet exec base64-decode "SGVsbG8="
        
        Output: Hello
    • sha1: computes SHA-1 hex digest for input text.
      • Example:
        dotnet exec sha1 "text"
        

Improvements

  • Reset action persists via AppConfiguration and saves through IAppConfigSource.
  • Expanded default alias set to include base64-decode and sha1.

Dependency Updates

  • Tooling:
    • Husky: 0.7.2 → 0.8.0
  • Runtime/Library:
    • Microsoft.Extensions.Hosting: 10.0.0 → 10.0.2
    • ModelContextProtocol: 0.4.0-preview.3 → 0.6.0-preview.1
    • NuGet.Protocol: 7.0.0 → 7.0.1
    • System.CommandLine: 2.0.0 → 2.0.2
    • System.Linq.AsyncEnumerable: 10.0.0 → 10.0.2 (conditionally excluded for net10.0)
    • WeihanLi.Common: 1.0.84 → 1.0.86
  • Testing:
    • Added GitHubActionsTestLogger: 3.0.1
    • Switched to xUnit MTP package: xunit.v3.mtp-v2 3.2.2
    • Xunit.DependencyInjection: 11.1.0 → 11.1.1
    • Removed coverlet.collector
    • Dropped TestingPlatformDotnetTestSupport property from tests

Upgrade

If you use dotnet-exec as a .NET tool, you can upgrade with:

dotnet tool update --global dotnet-exec

Full Changelog: 0.33.0...0.34.0

0.33.0

21 Nov 00:59

Choose a tag to compare

.NET 10 GA Release

Full Changelog: 0.32.0...0.33.0

0.32.0

15 Sep 04:58

Choose a tag to compare

  • feat: upgrade dependencies and .NET 10 RC 1 update
  • feat: add more default alias(base64/md5/sha256)
  • docs: update documentation

Full Changelog: 0.31.0...0.32.0

0.31.0

17 Aug 13:55

Choose a tag to compare

  • feat: upgrade dependencies and .NET 10 Preview 7 update
  • refactor: log enhancement and refactoring
  • build: simplify build script
  • docs: refine document

Full Changelog: 0.30.0...0.31.0

0.30.0

25 Jul 11:12

Choose a tag to compare

  • feat: .NET 10 Preview 6 upgrade
  • feat: Improve stdin support to better support alias and support stdin + scripts
  • feat: support new project run file directive
  • feat: upgrade System.CommandLine and etc dependencies

Full Changelog: 0.29.0...0.30.0

0.29.0

14 Jun 11:52
28f9e39

Choose a tag to compare

  • feat: .NET 10 Preview 5 upgrade
  • feat: support read code from stdin
  • feat: run file directive support

Full Changelog: 0.28.0...0.29.0

0.28.0

24 May 15:32

Choose a tag to compare

  • feat: .NET 10 Preview 4 upgrade
  • feat: project compiler support

Full Changelog: 0.27.0...0.28.0

0.27.0

29 Mar 08:34
e4c34ec

Choose a tag to compare

What's Changed

  • .NET 10 Preview 2 upgrade
  • Add xunit test case execution support by @WeihanLi in #29
  • Add docs about the alias command usage by @WeihanLi in #31

Full Changelog: 0.26.0...0.27.0