jvncorelib 1.0.1.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package jvncorelib --version 1.0.1.2
NuGet\Install-Package jvncorelib -Version 1.0.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="jvncorelib" Version="1.0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add jvncorelib --version 1.0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: jvncorelib, 1.0.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install jvncorelib as a Cake Addin
#addin nuget:?package=jvncorelib&version=1.0.1.2
// Install jvncorelib as a Cake Tool
#tool nuget:?package=jvncorelib&version=1.0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
基础核心类库jvncorelib(适用全平台)
一、安装部署
1、打开管理Nu-get包命令行,输入如下代码:
Install-Package jvncorelib -Version 1.0.1.2
2、安装完成后,在需要用到的地方写上如下代码:
using jvncorelib; //.Net Core3.1+/.Net 5引用,默认加载所有类库,按需引入请查看“引用参照表”
using jvncorelib_fr; //.Net Framework 4.6+引用,默认加载所有类库,按需引入请查看“引用参照表”
static void Main(string[] args)
{
#region 加/解密
EncryptLib encryptLib= new EncryptLib();
var str = "需要加密的字符串!";
//获得加密后的字符串
var encryptedStr = encryptLib.Encryption(str);
Console.WriteLine(encryptedStr);
//解密加密后的字符串
var deEncryptStr = encryptLib.Decryption(encryptedStr);
Console.WriteLine(deEncryptStr);
#endregion
#region 流水号生成
UniqueCode uniqueCode= new UniqueCode();
//生成不带业务前缀的普通流水号
List<string> result = uniqueCode.GetListNewId(10);
//生成带业务前缀的业务流水号(多条)
result = uniqueCode.GetListNewId("JVN",10);
//生成带业务前缀的业务流水号(单条)
string _result = uniqueCode.GetNewId("JVN");
Console.WriteLine(string.Join("\n",result));
Console.WriteLine(result);
#endregion
}
二、引用参照表(仅针对1.0.1.1之后版本)
类库名称 | 命名空间(.Net Core 3.1+/.Net 5) | 命名空间(.Net Framework 4.6+) |
---|---|---|
流水号生成类库 | using jvncorelib.CodeLib; | using jvncorelib_fr.CodeLib; |
信息加密类库 | using jvncorelib. Encryptor; | using jvncorelib_fr.Encryptor; |
三、历史版本参照表(倒序)
包名 | 版本号 | 更新日志 | 命令行 |
---|---|---|---|
jvncorelib | 1.0.1.2 | 类库支持按需引入 | Install-Package jvncorelib -Version 1.0.1.2 |
jvncorelib | 1.0.1.1 | 整合加密类库;完善优化流水号类库; | Install-Package jvncorelib -Version 1.0.1.1 |
jvncorelib | 1.0.0.1 | 初始化项目;新增流水号类库; | Install-Package jvncorelib -Version 1.0.0.1 |
jvncorelib | 1.0.0 | 初始化项目; | Install-Package jvncorelib -Version 1.0.0 |
四、说明:如有任何疑问,请点击右侧链接【Contact owners】联系作者!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
基础核心类库,主要封装常用的便捷工具。例如:加密、流水号生成等等。
更多好用的正在开发中,敬请期待......
更新日志(2021-09-12):
1、分类工具类库,支持按需引入。