You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Everything compiling without issues, and no major change since it is only a minor version change. (trying to be optimistic at times)
(Also wouldn't expect Microsoft.Bcl.Memory to break IndexRange usage, but that might be a more difficult issue to resolve.)
Change of package use would be nice to have in release notes with explanation.
Introduced in #2817
Actual behavior
Compile time errors
CS0656 Missing compiler required member 'System.Index..ctor'
CS0518 Predefined type 'System.Index' is not defined or imported
CS0518 Predefined type 'System.Range' is not defined or imported
Possible solution
Is Microsoft.Bcl.Memory required as a dependency in netstandard builds?
caspChristian
changed the title
[Bug]
netstandard 2.0 build depends on Microsoft.Bcl.Memory causing conflict with Indexes provided by IndexRange
Jan 21, 2025
Which version of Microsoft.IdentityModel are you using?
Microsoft.IdentityModel.Tokens 8.3.1
Where is the issue?
Microsoft.IdentityModel.Tokens 8.3.1 netstandard 2.0 build Depends on Microsoft.Bcl.Memory
Is this a new or an existing app?
Existing app, Api .Net 4.7.2, working fine with Microsoft.IdentityModel.Tokens 8.3.0
Repro
Using IndexRange to provide support for language features of index, especially
Also see bgrainger/IndexRange#14
Expected behavior
Everything compiling without issues, and no major change since it is only a minor version change. (trying to be optimistic at times)
(Also wouldn't expect Microsoft.Bcl.Memory to break IndexRange usage, but that might be a more difficult issue to resolve.)
Change of package use would be nice to have in release notes with explanation.
Introduced in #2817
Actual behavior
Compile time errors
Possible solution
Is
Microsoft.Bcl.Memory
required as a dependency innetstandard
builds?azure-activedirectory-identitymodel-extensions-for-dotnet/src/Microsoft.IdentityModel.Tokens/Microsoft.IdentityModel.Tokens.csproj
Line 68 in 658604a
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))">
Current workaround
Block version 8.3.1 and later
The text was updated successfully, but these errors were encountered: