Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/ShellProgressBar.Example/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using ShellProgressBar.Example.Examples;
Expand Down Expand Up @@ -46,7 +45,6 @@ class Program

static void Main(string[] args)
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var cts = new CancellationTokenSource();
Console.CancelKeyPress += (s, e) =>
{
Expand Down
6 changes: 0 additions & 6 deletions src/ShellProgressBar/ProgressBarBase.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
using System;
using System.Collections.Concurrent;
using System.Text;
using System.Threading;

namespace ShellProgressBar
{
public abstract class ProgressBarBase
{
static ProgressBarBase()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}

protected readonly DateTime _startDate = DateTime.Now;
private int _maxTicks;
private int _currentTick;
Expand Down
1 change: 0 additions & 1 deletion src/ShellProgressBar/ShellProgressBar.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.0.1" />
</ItemGroup>
</Project>