From 2165992e34b9a58de400a18aa453070bdfc0b432 Mon Sep 17 00:00:00 2001 From: Ben Watson Date: Fri, 24 Jul 2026 10:12:15 -0700 Subject: [PATCH 1/3] Update CHANGES.md, change version to -preview. Update generatedocs.cmd to isntall tool if not found. --- CHANGES.md | 6 +++++- generatedocs.cmd | 10 ++++++++++ src/Microsoft.IO.RecyclableMemoryStream.csproj | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8178e10c..1373bf70 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,12 @@ # Version 4.0.0 **Breaking Changes** -* Dropping net6.0 will more easily support trimming [PR #409](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/409) * Switch `MemoryStreamDoubleDispose` event level from Critical to Verbose [PR #406](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/406) +* Dropping net6.0 will more easily support trimming [PR #409](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/409) + +**New Features** + +* Add trimming support [PR #443](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/443) and utilize `EventSourcePrimtiives` for logging **Other Changes** * Readme: Add clarity for the large pool of buffers and the GetBuffer method pertaining to the .NET max array length [PR #370](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/370) diff --git a/generatedocs.cmd b/generatedocs.cmd index 2e2b2afa..27fe6baa 100644 --- a/generatedocs.cmd +++ b/generatedocs.cmd @@ -3,6 +3,16 @@ ECHO =========================================================== ECHO Using xmldocmd from https://github.com/ejball/XmlDocMarkdown ECHO =========================================================== +where xmldocmd >nul 2>nul +IF ERRORLEVEL 1 ( + ECHO xmldocmd not found. Installing... + dotnet tool install xmldocmd -g + IF ERRORLEVEL 1 ( + ECHO Failed to install xmldocmd. + EXIT /B 1 + ) +) + del /q /s docs\* xmldocmd .\src\bin\Release\netstandard2.1\Microsoft.IO.RecyclableMemoryStream.dll .\docs --obsolete --clean diff --git a/src/Microsoft.IO.RecyclableMemoryStream.csproj b/src/Microsoft.IO.RecyclableMemoryStream.csproj index af595ec1..fa27fe86 100644 --- a/src/Microsoft.IO.RecyclableMemoryStream.csproj +++ b/src/Microsoft.IO.RecyclableMemoryStream.csproj @@ -7,7 +7,7 @@ bin\$(Configuration)\$(TargetFramework)\Microsoft.IO.RecyclableMemoryStream.xml Microsoft.IO.RecyclableMemoryStream - 4.0.0-alpha + 4.0.0-preview Microsoft.IO.RecyclableMemoryStream Microsoft A pooled MemoryStream allocator to decrease GC load and improve performance on highly scalable systems. From c5d2e942db44699f0a7f00ddd842ea8fd6dc3921 Mon Sep 17 00:00:00 2001 From: Ben Watson Date: Fri, 24 Jul 2026 10:18:35 -0700 Subject: [PATCH 2/3] Remove nuget bug workaround. Mention in changes.md. --- CHANGES.md | 5 +++-- src/Microsoft.IO.RecyclableMemoryStream.csproj | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 1373bf70..9fca6fa0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,8 @@ # Version 4.0.0 **Breaking Changes** -* Switch `MemoryStreamDoubleDispose` event level from Critical to Verbose [PR #406](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/406) -* Dropping net6.0 will more easily support trimming [PR #409](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/409) +* Switch `MemoryStreamDoubleDispose` event level from `Critical` to `Verbose` [PR #406](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/406) +* Drop net6.0 to simplify support for trimming [PR #409](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/409) **New Features** @@ -10,6 +10,7 @@ **Other Changes** * Readme: Add clarity for the large pool of buffers and the GetBuffer method pertaining to the .NET max array length [PR #370](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/370) +* Removed workaround for [Nuget packing bug](https://github.com/dotnet/sdk/issues/11105). # Version 3.0.1 diff --git a/src/Microsoft.IO.RecyclableMemoryStream.csproj b/src/Microsoft.IO.RecyclableMemoryStream.csproj index fa27fe86..addd80de 100644 --- a/src/Microsoft.IO.RecyclableMemoryStream.csproj +++ b/src/Microsoft.IO.RecyclableMemoryStream.csproj @@ -56,10 +56,6 @@ - - - - From c18e7d9bbd9aab03cf7df6a02ed4efd8cc23e4f2 Mon Sep 17 00:00:00 2001 From: Ben Watson Date: Fri, 24 Jul 2026 10:21:35 -0700 Subject: [PATCH 3/3] Add another PR link. --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 9fca6fa0..0e57450a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,7 +10,7 @@ **Other Changes** * Readme: Add clarity for the large pool of buffers and the GetBuffer method pertaining to the .NET max array length [PR #370](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/370) -* Removed workaround for [Nuget packing bug](https://github.com/dotnet/sdk/issues/11105). +* Removed workaround for [Nuget packing bug](https://github.com/dotnet/sdk/issues/11105). [PR #445](https://github.com/microsoft/Microsoft.IO.RecyclableMemoryStream/pull/445) # Version 3.0.1