mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-05-04 12:02:52 +08:00
Compare commits
No commits in common. "97acd3ea5648ab72bdb9ee5c22fbb9d729a2d126" and "5e17e20aab1478eb1b385d06474abf9a1cdec787" have entirely different histories.
97acd3ea56
...
5e17e20aab
@ -15,11 +15,9 @@ $files = Get-ChildItem -Path ./build/nupkgs/ -Filter *.nupkg
|
|||||||
foreach($file in $files)
|
foreach($file in $files)
|
||||||
{
|
{
|
||||||
dotnet nuget push $file.fullName --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json
|
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
|
$files = Get-ChildItem -Path ./build/nupkgs/ -Filter *.snupkg
|
||||||
foreach($file in $files)
|
foreach($file in $files)
|
||||||
{
|
{
|
||||||
dotnet nuget push $file.fullName --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json
|
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
|
|
||||||
}
|
}
|
@ -34,19 +34,4 @@ public static class ByteExtensions
|
|||||||
{
|
{
|
||||||
return me.HexDe(Encoding.UTF8);
|
return me.HexDe(Encoding.UTF8);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 将字节数组转换成16进制字符串
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="me"></param>
|
|
||||||
/// <param name="upperCase">是否大写</param>
|
|
||||||
/// <param name="splitShar">字节间分隔符</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static string String(this byte[] me, bool upperCase = true, string splitShar = null)
|
|
||||||
{
|
|
||||||
var ret = BitConverter.ToString(me);
|
|
||||||
if (!upperCase) ret = ret.ToLower();
|
|
||||||
if (splitShar != "-") ret = ret.Replace("-", splitShar ?? string.Empty);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
|
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Version>1.0.6</Version>
|
<Version>1.0.4</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user