当前位置:网站首页>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
边栏推荐
- P4281 [AHOI2008]紧急集合 / 聚会(LCA)
- abc 258 G - Triangle(bitset)
- 全栈开发提效神器——ApiFox(Postman + Swagger + Mock + JMeter)
- Les phénomènes de « salaire inversé » et de « remplacement des diplômés » indiquent que l'industrie des tests a...
- GDB common commands
- 他做国外LEAD,用了一年时间,把所有房贷都还清了
- Learn C language from scratch day 024
- Basic concept and usage of redis
- [论文阅读] TUN-Det: A Novel Network for Thyroid Ultrasound Nodule Detection
- Paper notes multi UAV collaborative monolithic slam
猜你喜欢
Fs8b711s14 electric wine bottle opener MCU IC scheme development special integrated IC
2022.07.03 (LC 6108 decryption message)
[selenium automation] common notes
Basic concept and usage of redis
Get to know ROS for the first time
[paper reading] cavemix: a simple data augmentation method for brain vision segmentation
skimage: imread & imsave & imshow
全栈开发提效神器——ApiFox(Postman + Swagger + Mock + JMeter)
创新引领方向 华为智慧生活全场景新品齐发
ORB(Oriented FAST and Rotated BRIEF)
随机推荐
人生无常,大肠包小肠, 这次真的可以回家看媳妇去了。。。
实战模拟│JWT 登录认证
华为百万聘请数据治理专家!背后的千亿市场值得关注
Netcore3.1 JSON web token Middleware
Binary conversion problem
P4408 [noi2003] truant children (tree diameter)
Pycharm professional download and installation tutorial
Summer challenge brings you to play harmoniyos multi terminal piano performance
Several simplified forms of lambda expression
Learn C language from scratch day 024
abc 258 G - Triangle(bitset)
初识ROS
JS how to realize array to tree
Expose testing outsourcing companies. You may have heard such a voice about outsourcing
多模输入事件分发机制详解
Summary of week 22-07-02
【C】(笔试题)指针与数组,指针
URL和URI
“薪资倒挂”、“毕业生平替” 这些现象说明测试行业已经...
It's too convenient. You can complete the code release and approval by nailing it!