diff --git a/examples/Directory.Build.props b/examples/Directory.Build.props new file mode 100644 index 0000000..a53b408 --- /dev/null +++ b/examples/Directory.Build.props @@ -0,0 +1,6 @@ + + + + false + + diff --git a/src/Wolfgang.Etl.Abstractions/IProgressTimer.cs b/src/Wolfgang.Etl.Abstractions/IProgressTimer.cs index 4749499..eadc363 100644 --- a/src/Wolfgang.Etl.Abstractions/IProgressTimer.cs +++ b/src/Wolfgang.Etl.Abstractions/IProgressTimer.cs @@ -20,7 +20,9 @@ public interface IProgressTimer : IDisposable /// Raised at each timer interval. Subscribers receive progress notifications /// and should call CreateProgressReport() then Report(). /// +#pragma warning disable MA0046 // Elapsed intentionally uses Action (not EventHandler) — changing the delegate signature would be a breaking change across all downstream ETL libraries event Action? Elapsed; +#pragma warning restore MA0046 /// /// Starts the timer with the specified interval in milliseconds. diff --git a/src/Wolfgang.Etl.Abstractions/Report.cs b/src/Wolfgang.Etl.Abstractions/Report.cs index 185b113..5cc78fb 100644 --- a/src/Wolfgang.Etl.Abstractions/Report.cs +++ b/src/Wolfgang.Etl.Abstractions/Report.cs @@ -32,16 +32,4 @@ public Report(int currentItemCount) /// The number of items that have been processed so far in the ETL process. /// public int CurrentItemCount { get; } - - - - /// - /// The number of items that have been processed so far in the ETL process. - /// - /// - /// This property is obsolete. Use instead. - /// - [Obsolete("Use CurrentItemCount instead. CurrentCount will be removed in a future version.")] - public int CurrentCount => CurrentItemCount; - } diff --git a/src/Wolfgang.Etl.Abstractions/Wolfgang.Etl.Abstractions.csproj b/src/Wolfgang.Etl.Abstractions/Wolfgang.Etl.Abstractions.csproj index dca6098..4096d4f 100644 --- a/src/Wolfgang.Etl.Abstractions/Wolfgang.Etl.Abstractions.csproj +++ b/src/Wolfgang.Etl.Abstractions/Wolfgang.Etl.Abstractions.csproj @@ -1,9 +1,9 @@  - net462;net472;net48;net481;netstandard2.0;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0;net10.0 + net462;net472;net48;net481;netstandard2.0;net5.0;net6.0;net7.0;net8.0;net9.0;net10.0 latest enable - 0.11.0 + 0.12.0 False $(AssemblyName) Chris Wolfgang @@ -53,7 +53,7 @@ get a full reference. The net8+ group pins the version with ExcludeAssets="runtime" to prevent NuGet from resolving an older transitive version — no runtime assembly is copied. --> - + diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props new file mode 100644 index 0000000..a53b408 --- /dev/null +++ b/tests/Directory.Build.props @@ -0,0 +1,6 @@ + + + + false + + diff --git a/tests/Wolfgang.Etl.Abstractions.Tests.Unit/ReportTests.cs b/tests/Wolfgang.Etl.Abstractions.Tests.Unit/ReportTests.cs index 6d8339d..ca73f6d 100644 --- a/tests/Wolfgang.Etl.Abstractions.Tests.Unit/ReportTests.cs +++ b/tests/Wolfgang.Etl.Abstractions.Tests.Unit/ReportTests.cs @@ -46,17 +46,6 @@ public void CurrentItemCount_returns_the_value_passed_to_the_constructor() -#pragma warning disable CS0618 - [Fact] - public void CurrentCount_returns_the_same_value_as_CurrentItemCount() - { - var sut = new Report(7); - Assert.Equal(sut.CurrentItemCount, sut.CurrentCount); - } -#pragma warning restore CS0618 - - - [Fact] public void Two_Report_instances_with_same_value_are_equal() {