当前位置:网站首页>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
边栏推荐
- SAP UI5 应用开发教程之一百零七 - SAP UI5 OverflowToolbar 容器控件介绍的试读版
- Kibana index, mapping, document operation
- Upload avatar on uniapp
- “薪資倒掛”、“畢業生平替” 這些現象說明測試行業已經...
- Hill sort of sorting
- P3304 [sdoi2013] diameter (diameter of tree)
- Continuous modification of business scenario functions
- [论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation
- 2022.07.03(LC_6108_解密消息)
- 【Unity】InputSystem
猜你喜欢
lambda表达式
【C】 (written examination questions) pointer and array, pointer
“薪资倒挂”、“毕业生平替” 这些现象说明测试行业已经...
College degree, what about 33 year old Baoma? I still sell and test, and my monthly income is 13K+
2022.07.03(LC_6108_解密消息)
2022.07.03 (LC 6108 decryption message)
Huawei employs millions of data governance experts! The 100 billion market behind it deserves attention
【C】(笔试题)指针与数组,指针
What happened to those who focused on automated testing?
他做国外LEAD,用了一年时间,把所有房贷都还清了
随机推荐
js如何实现数组转树
Which financial products with stable income are good
每日刷题记录 (十三)
多模输入事件分发机制详解
Five papers recommended for the new development of convolutional neural network in deep learning
Visual explanation of Newton iteration method
[STM32] (I) overview and GPIO introduction
TS quick start - functions
There is a new Post-00 exam king in the testing department. I really can't do it in my old age. I have
GDB常用命令
Maximum number of "balloons"
巩固表达式C# 案例简单变量运算
Ap8022 switching power supply small household appliances ACDC chip offline switching power supply IC
6. Scala operator
PyTorch: In-place Operation
Deux nombres se remplacent
"Upside down salary", "equal replacement of graduates" these phenomena show that the testing industry has
基本放大电路的学习
Daily practice (18): stack containing min function
He worked as a foreign lead and paid off all the housing loans in a year