jvncorelib 1.0.1.1
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
.NET Framework 4.6.1
This package targets .NET Framework 4.6.1. The package is compatible with this framework or higher.
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.1
NuGet\Install-Package jvncorelib -Version 1.0.1.1
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.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add jvncorelib --version 1.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: jvncorelib, 1.0.1.1"
#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.1 // Install jvncorelib as a Cake Tool #tool nuget:?package=jvncorelib&version=1.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
基础核心类库jvncorelib(适用全平台)
一、安装部署
1、打开管理Nuget包命令行,输入如下代码:
Install-Package jvncorelib -Version 1.0.1.1
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
}
二、说明:如有任何疑问,请联系作者!
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-02):
1、新增加密类库。
2、完善流水号生成类库。