diff --git a/push2nuget.ps1 b/push2nuget.ps1
index 68808a9..3e911c8 100644
--- a/push2nuget.ps1
+++ b/push2nuget.ps1
@@ -15,9 +15,11 @@ $files = Get-ChildItem -Path ./build/nupkgs/ -Filter *.nupkg
foreach($file in $files)
{
dotnet nuget push $file.fullName --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json
+ nuget add $file.fullName -source d:\nuget-pkg
}
$files = Get-ChildItem -Path ./build/nupkgs/ -Filter *.snupkg
foreach($file in $files)
{
dotnet nuget push $file.fullName --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json
+ nuget add $file.fullName -source d:\nuget-pkg
}
\ No newline at end of file
diff --git a/src/NSExt/Extensions/ByteExtensions.cs b/src/NSExt/Extensions/ByteExtensions.cs
index 884dfa5..0e6d4cf 100644
--- a/src/NSExt/Extensions/ByteExtensions.cs
+++ b/src/NSExt/Extensions/ByteExtensions.cs
@@ -34,4 +34,19 @@ public static class ByteExtensions
{
return me.HexDe(Encoding.UTF8);
}
+
+ ///
+ /// 将字节数组转换成16进制字符串
+ ///
+ ///
+ /// 是否大写
+ /// 字节间分隔符
+ ///
+ public static string String(this byte[] me, bool upperCase = true, char? splitShar = '-')
+ {
+ var ret = BitConverter.ToString(me);
+ if (!upperCase) ret = ret.ToLower();
+ if (splitShar is not null && splitShar != '-') ret = ret.Replace('-', splitShar.Value);
+ return ret;
+ }
}
\ No newline at end of file
diff --git a/src/NSExt/NSExt.csproj b/src/NSExt/NSExt.csproj
index f120607..f800d1f 100644
--- a/src/NSExt/NSExt.csproj
+++ b/src/NSExt/NSExt.csproj
@@ -3,7 +3,7 @@
net6.0;net7.0
enable
- 1.0.4
+ 1.0.5