Skip to content

Conversation

@MiguelGuedelha
Copy link

@MiguelGuedelha MiguelGuedelha commented Oct 8, 2024

  • Upgrade Microsft.IO.RecyclableMemoryStream
    • Breaking chances in the constructor
    • Fixed Pooled Stream with new Options initialisation
  • Fixed the Sample project to have the correct extra component added to the index file. Remove App import
  • Added NET 8.0 targets to the projects

Modern systems that I'm currently working with, such as Umbraco have dependencies on the new v3 versions of Microsft.IO.RecyclableMemoryStream on their newer versions, this leads to a version conflict that forces me to use the newer v3 versions. These versions have breaking changes on how the Memory Manager is created, fixed in this PR.

Not entirely sure if this is too much change for a single PR + how it should be moved forward since the MS package upgrade is a breaking change.

Most likely would require the update to be part of a 3.0.0 release of this package into nuget if it was to be merged and released?

@enkelmedia
Copy link

Would love to see this merged and released 👍

BlockSize = blockSize,
LargeBufferMultiple = largeBufferMultiple,
MaximumBufferSize = maximumBufferSize,
GenerateCallStacks = true,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I played around with my own fork inspired by yours and got an error during hot reload.

Unable to cast object of type 'System.Attribute[]' to type 'System.Runtime.CompilerServices.StateMachineAttribute[]'.'

Turns out it was GenerateCallStacks = true, that did not play nice with hot reload, setting this to false solved the problem for me.

@bobharing
Copy link

Will this ever get merged? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants