当前位置:网站首页>dotnet-exec 0.6.0 released
dotnet-exec 0.6.0 released
2022-07-05 00:48:00 【Dotnet cross platform】
dotnet-exec 0.6.0 released
Intro
dotnet-exec
It's a C# Widget for program , Can be used to run some simple C# Program without creating a project file , And you can customize the entry method of the project , Support but not limited to Main Method
Install/Update
dotnet-exec
It's a dotnet tool, Can be installed using dotnet tool To install
install / Update the latest stable version :
dotnet tool update -g dotnet-execute
Install the latest preview edition :
dotnet tool update -g dotnet-execute --prerelease
Script
stay 0.6.0 The version introduces script Support , So as to simplify the use of some simple code , For example, this simple example
dotnet-exec "script:1+1"
stay 0.5.0 In version, users can customize reference, Now you can also aim at script Use -r
/--reference
Option to customize the local... Of the reference dll perhaps nuget package
For example, the following reference nuget Example of a package
dotnet-exec "script:typeof(CsvHelper).Assembly.Location" -r "nuget:WeihanLi.Npoi" -u "WeihanLi.Npoi"
Here's a quote from WeihanLi.Npoi
This nuget package , If no version is specified, the latest stable version will be used by default , At present, it is 2.3.0 So the output we see will be 2.3.0
We can also specify specific NuGet Package version , such as :
dotnet-exec "script:typeof(CsvHelper).Assembly.Location" -r "nuget:WeihanLi.Npoi,2.1.0" -u "WeihanLi.Npoi"
We can also directly reference local dll, For example, we quote the above nuget Local... In the package dll
dotnet-exec "script:typeof(CsvHelper).FullName" -r "C:\Users\Weiha\.nuget\packages\weihanli.npoi\2.3.0\lib/net6.0/WeihanLi.Npoi.dll" -u "WeihanLi.Npoi"
new docker The image has been released , It can also be done through docker Use weihanli/dotnet-exec:0.6.0 Mirror to experience
References
https://github.com/WeihanLi/dotnet-exec
https://www.nuget.org/packages/dotnet-execute/
https://hub.docker.com/r/weihanli/dotnet-exec
边栏推荐
- Hologres query management and timeout processing
- 兩個數相互替換
- Skills in analyzing the trend chart of London Silver
- 基本放大电路的学习
- Life is changeable, and the large intestine covers the small intestine. This time, I can really go home to see my daughter-in-law...
- User login function: simple but difficult
- Get to know ROS for the first time
- Binary conversion problem
- Basic concept and usage of redis
- Oracle case: SMON rollback exception causes instance crash
猜你喜欢
基本放大电路的学习
What happened to those who focused on automated testing?
URLs and URIs
Innovation leads the direction. Huawei Smart Life launches new products in the whole scene
大专学历,33岁宝妈又怎样?我照样销售转测试,月入13k+
abc 258 G - Triangle(bitset)
[论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation
Continuous modification of business scenario functions
7. Scala process control
测试部新来了个00后卷王,上了年纪的我真的干不过了,已经...
随机推荐
[path planning] RRT adds dynamic model for trajectory planning
初识ROS
GDB common commands
Maximum number of "balloons"
他做国外LEAD,用了一年时间,把所有房贷都还清了
GDB常用命令
2022.07.03 (LC 6109 number of people who know secrets)
那些一门心思研究自动化测试的人,最后都怎样了?
(脚本)一键部署redis任意版本 —— 筑梦之路
全网最全正则实战指南,拿走不谢
Summer challenge brings you to play harmoniyos multi terminal piano performance
uniapp上传头像
巩固表达式C# 案例简单变量运算
Acwing164. Accessibility Statistics (topological sorting +bitset)
P3304 [sdoi2013] diameter (diameter of tree)
AcWing164. 可达性统计(拓扑排序+bitset)
Consolidated expression C case simple variable operation
Paxos 入门
(script) one click deployment of any version of redis - the way to build a dream
Kibana index, mapping, document operation