Releases: WeihanLi/dotnet-exec
Releases · WeihanLi/dotnet-exec
0.36.0
✨ Features
- Added support for the
#: includedirective 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.Protocolto7.3.1System.CommandLineto2.0.6WeihanLi.Commonto1.0.88GitHubActionsTestLoggerto3.0.3Xunit.DependencyInjectionto11.2.1- Added
BenchmarkDotNetfor performance testing
🧹 Cleanup
- Removed the
dotnet-exec-mcpproject from the solution and repository - Renamed the Roslyn NuGet config file to
nuget.config - Added
Microsoft.CodeAnalysis.Analyzersto 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
What's Changed
🚀 Features
- Add .NET 11 support
- Update supported target frameworks to
net10.0andnet11.0 - Prefer
net11.0artifacts in build outputs
💥 Breaking Changes
- Remove
net8.0support - Remove
net9.0support
🐳 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/checkoutto v6 - Update
actions/setup-dotnetto 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.0artifacts
📦 Dependencies
- Bump Roslyn from
5.0.0to5.3.0 - Bump
Microsoft.Extensions.Hostingto10.0.5 - Bump
ModelContextProtocolto1.1.0 - Bump
NuGet.Protocolto7.3.0 - Bump
System.CommandLineto2.0.5 - Bump
Xunit.DependencyInjectionto11.2.0 - Update
WeihanLi.Common - Remove conditional
System.Linq.AsyncEnumerabledependency for older target frameworks
🧹 Refactoring & Cleanup
- Adopt newer collection expression style in several places
- Update
.editorconfigto 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
Highlights
- New alias management command:
alias resetto restore default aliases. - New built-in helpers:
base64-decodeandsha1. - 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 resetcommand to restore aliases to the default set.- Usage:
dotnet exec alias reset
- Usage:
- Added
- Built-in expressions:
base64-decode: decodes a Base64 string to UTF-8.- Example:
Output:
dotnet exec base64-decode "SGVsbG8="Hello
- Example:
sha1: computes SHA-1 hex digest for input text.- Example:
dotnet exec sha1 "text"
- Example:
Improvements
- Reset action persists via
AppConfigurationand saves throughIAppConfigSource. - Expanded default alias set to include
base64-decodeandsha1.
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-v23.2.2 - Xunit.DependencyInjection: 11.1.0 → 11.1.1
- Removed
coverlet.collector - Dropped
TestingPlatformDotnetTestSupportproperty 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
.NET 10 GA Release
Full Changelog: 0.32.0...0.33.0
0.32.0
- 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
- 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
- feat: .NET 10 Preview 6 upgrade
- feat: Improve stdin support to better support alias and support stdin + scripts
- feat: support new
projectrun file directive - feat: upgrade
System.CommandLineand etc dependencies
Full Changelog: 0.29.0...0.30.0
0.29.0
- 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
- feat: .NET 10 Preview 4 upgrade
- feat: project compiler support
Full Changelog: 0.27.0...0.28.0