Compare commits

..

No commits in common. "e6e5c196f795532825a50dce947724dfcf2775fe" and "ec380add5ffe1316a939d455b7564b208325d6f5" have entirely different histories.

5 changed files with 1 additions and 13 deletions

View File

@ -1,6 +0,0 @@
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
}

View File

@ -9,9 +9,7 @@ public sealed class LocalizationAttribute : Attribute
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="LocalizationAttribute" /> class. /// Initializes a new instance of the <see cref="LocalizationAttribute" /> class.
/// </summary> /// </summary>
#pragma warning disable IDE0290
public LocalizationAttribute(Type resourceClass) public LocalizationAttribute(Type resourceClass)
#pragma warning restore IDE0290
{ {
ResourceClass = resourceClass; ResourceClass = resourceClass;
} }

View File

@ -9,9 +9,7 @@ public sealed class ResourceDescriptionAttribute<T> : Attribute
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ResourceDescriptionAttribute{T}" /> class. /// Initializes a new instance of the <see cref="ResourceDescriptionAttribute{T}" /> class.
/// </summary> /// </summary>
#pragma warning disable IDE0290
public ResourceDescriptionAttribute(string resourceName) public ResourceDescriptionAttribute(string resourceName)
#pragma warning restore IDE0290
{ {
ResourceName = resourceName; ResourceName = resourceName;
} }

View File

@ -25,8 +25,6 @@ public static class StreamExtensions
/// </summary> /// </summary>
public static bool IsTextStream(this Stream me) public static bool IsTextStream(this Stream me)
{ {
#pragma warning disable IDE0300
return me.FirstByteIndex(new byte[] { 0x00, 0xff }) < 0; return me.FirstByteIndex(new byte[] { 0x00, 0xff }) < 0;
#pragma warning restore IDE0300
} }
} }

View File

@ -2,7 +2,7 @@
<Import Project="../../code.quality.props"/> <Import Project="../../code.quality.props"/>
<Import Project="../../packable.props"/> <Import Project="../../packable.props"/>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0"/> <PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0-rc.1.23419.4"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="../../logo.png" Pack="true" PackagePath=""/> <None Include="../../logo.png" Pack="true" PackagePath=""/>