Shell.NET:直接在.NET Core中利用Bash Shell

时间:2021-05-18 14:44:06
【文件属性】:
文件名称:Shell.NET:直接在.NET Core中利用Bash Shell
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-18 14:44:06
C# Shell.NET 现在使用与Windows兼容 安装 使用.NET CLI来获取该库! 预发行版需要一个明确的版本。 dotnet add package Shell.NET 或将以下内容添加到您的.csproj: < ItemGroup> < PackageReference xss=removed xss=removed> 例子 var bash = new Bash (); bash . Grep ( " export " , " ~/.bashrc " , redirect : false ); // Commands return a BashResult that stores output information: if ( bash . Rm ( " ~/Desktop/bashrc

网友评论

相关文章