mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-11-29 04:55:48 +08:00
Compare commits
31 Commits
v2.0.5
...
e6e5c196f7
| Author | SHA1 | Date | |
|---|---|---|---|
| e6e5c196f7 | |||
| ff0cf65a65 | |||
| ec380add5f | |||
| d18f950d84 | |||
| 8a46a6d1a4 | |||
| f6a2375b5e | |||
| a3b6468906 | |||
| 7e204aea5d | |||
| f2444b3048 | |||
| d1978d9d9e | |||
| 1f17375915 | |||
| f846b7bdbf | |||
| 9384bc0692 | |||
| 05ca80acda | |||
| cc761e4939 | |||
| d23092e8fc | |||
| 13f8ae51c2 | |||
| 52b3170e10 | |||
| f3d0f98970 | |||
| 485e7a0ead | |||
| 943d151048 | |||
| 09352ac5ea | |||
| 8c1083f732 | |||
| 31e31c5d49 | |||
| 3095dc783e | |||
| 9ae1046dca | |||
| cb63791dbc | |||
| 3a1a71d1c1 | |||
| 54082a82f1 | |||
| 1ea481e749 | |||
| d9aae8fe95 |
6
publish.ps1
Normal file
6
publish.ps1
Normal file
@@ -0,0 +1,6 @@
|
||||
Remove-Item ./dist -Recurse -Force -Confirm:$false
|
||||
dotnet build -c Release
|
||||
$apikey = Read-Host -Prompt "nuget apikey"
|
||||
foreach ($file in Get-ChildItem -Path ./dist/NSExt/bin/Release | Where-Object { $_.Name -match "nupkg" }) {
|
||||
dotnet nuget push $file --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json
|
||||
}
|
||||
@@ -9,7 +9,9 @@ public sealed class LocalizationAttribute : Attribute
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LocalizationAttribute" /> class.
|
||||
/// </summary>
|
||||
#pragma warning disable IDE0290
|
||||
public LocalizationAttribute(Type resourceClass)
|
||||
#pragma warning restore IDE0290
|
||||
{
|
||||
ResourceClass = resourceClass;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,9 @@ public sealed class ResourceDescriptionAttribute<T> : Attribute
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ResourceDescriptionAttribute{T}" /> class.
|
||||
/// </summary>
|
||||
#pragma warning disable IDE0290
|
||||
public ResourceDescriptionAttribute(string resourceName)
|
||||
#pragma warning restore IDE0290
|
||||
{
|
||||
ResourceName = resourceName;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ public static class StreamExtensions
|
||||
/// </summary>
|
||||
public static bool IsTextStream(this Stream me)
|
||||
{
|
||||
#pragma warning disable IDE0300
|
||||
return me.FirstByteIndex(new byte[] { 0x00, 0xff }) < 0;
|
||||
#pragma warning restore IDE0300
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
<Import Project="../../code.quality.props"/>
|
||||
<Import Project="../../packable.props"/>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0-rc.1.23419.4"/>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="../../logo.png" Pack="true" PackagePath=""/>
|
||||
|
||||
Reference in New Issue
Block a user