Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 15:08
· 5 commits to main since this release
0525ee0

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 dependsOn as PackageId@ExactVersion, including prerelease versions, with optional sdk and frameworkReferences fields 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.ps1 attached,
  • 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:

New Contributors

Full Changelog: https://github.com/codebeltnet/csrun/commits/v0.1.0