Repository navigation
v0.1.0
What's Changed
This release introduces csrun as a standalone PowerShell 7 script that runs a complete C# console program or xUnit v3 test from a manifest, a source file, or inline source, without cloning a repository or creating a project first.
- Console and test modes run C# console programs or xUnit v3 tests on the Microsoft Testing Platform, and test runs preserve the process exit status,
- Framework defaults resolve to the highest supported GA LTS channel from Microsoft's official release index, cached for up to 12 hours, and explicit targets must be .NET 10 or later,
- Exact NuGet pins are declared with
dependsOnasPackageId@ExactVersion, including prerelease versions, with optionalsdkandframeworkReferencesfields for ASP.NET Core console scenarios, - Scriptblock invocation keeps the calling PowerShell session alive and sets
$LASTEXITCODE, so the runner fits into larger automation, - Manifest validation rejects non-string framework values early with a clear message instead of letting them reach the MSBuild property,
- Regression and CI coverage exercises the runner against fixtures and samples, and pull request and tag workflows run the suite on the .NET 11 SDK and a .NET 10 compatibility job before a draft release with the tested
csrun.ps1attached, - Documentation and samples explain the copy-and-run flow, local options, and the schemaVersion 1 manifest format, with sample manifests for console, date span, xUnit output, and LTS default usage,
- Repository policy adds the MIT license, AGENTS.md engineering and .NET support rules, and Codebelt GitHub Actions with patch-precision SDK selection for CI.
Warning
csrun executes C# source and NuGet packages with your current permissions. It is not a sandbox, so review the script and the source before running them.
Sources:
- V0.1.0/init by @gimlichael and @aicia-bot in #1
- V0.1.0/ci fix by @gimlichael and @aicia-bot in #2
New Contributors
- @gimlichael made their first contribution in #1.
- @aicia-bot made their first contribution in #1.
Full Changelog: https://github.com/codebeltnet/csrun/commits/v0.1.0