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
We don't have a target for .net 7 so not sure how that would work out. I assume the changes you propose will require a net 7 target. We're not likely to provide that since net 7 is not on LTS. We are currently working on having a net 6 target though for version 4, so if you can make it work for that, it could be doable.
@OsirisTerje Unfortunately this feature was introduced in .NET 7. .NET 8 is coming out in a few months, maybe this can be added now and it will lay dormant until then?
However, we will follow new lifecycle policy for targeted frameworks that will follow the MIcrosoft framework lifecycles, but delayed around 6 months or so. And we will try to limit ourselves to supporting 2 target frameworks, this is about the size of the package - to avoid it being too large (that's only a choice of course).
.Net 6 has end of support Nov 12 2024, so that will mean around May/June 2025.
.Net framework 4.6.2 has end of support Jan 12 2027, so that will mean June/July 2028, and this will have to be updated through the other .net frameworks, 4.7 and 4.8 and so on.
So if this should go in before mid 2025, we would have to consider adding another .net version to the package. @manfred-brands@stevenaw@jnm2 Comments?
Like with the CallerArgumentExpressionAttribute and previously the NotNullAttribute this isn't something the framework uses, but either the compiler or in this case it is the editor (Visual Studio, not sure about Code or Ryder) that uses the attribute.
Nunit already uses the Nullable and IsExternalInit assemblies that supply attributes.
I haven't seen one for the others, so we can add them conditionally ourselves.
@RenderMichael Can you add the below to your PR (drop the .txt extension), build it and see if the editor picks it up.
@manfred-brands That worked! I pushed the changes to the associated PR, but I wasn't sure where you prefer the string syntax attribute polyfill, or what copyright header the file should have.
@lahma Thanks for that.
We are already using Nullable and IsExternalInit to get Nullable attributes in.
I did check to see if there was a matching one for the new arguments but didn't find it.
Now you pointed them out, I will investigate them to replace the ones we currently use.
Activity
OsirisTerje commentedon Jul 25, 2023
We don't have a target for .net 7 so not sure how that would work out. I assume the changes you propose will require a net 7 target. We're not likely to provide that since net 7 is not on LTS. We are currently working on having a net 6 target though for version 4, so if you can make it work for that, it could be doable.
RenderMichael commentedon Jul 25, 2023
@OsirisTerje Unfortunately this feature was introduced in .NET 7. .NET 8 is coming out in a few months, maybe this can be added now and it will lay dormant until then?
OsirisTerje commentedon Jul 25, 2023
That's a good thought!
However, we will follow new lifecycle policy for targeted frameworks that will follow the MIcrosoft framework lifecycles, but delayed around 6 months or so. And we will try to limit ourselves to supporting 2 target frameworks, this is about the size of the package - to avoid it being too large (that's only a choice of course).
.Net 6 has end of support Nov 12 2024, so that will mean around May/June 2025.
.Net framework 4.6.2 has end of support Jan 12 2027, so that will mean June/July 2028, and this will have to be updated through the other .net frameworks, 4.7 and 4.8 and so on.
So if this should go in before mid 2025, we would have to consider adding another .net version to the package. @manfred-brands @stevenaw @jnm2 Comments?
manfred-brands commentedon Jul 26, 2023
Like with the
CallerArgumentExpressionAttributeand previously theNotNullAttributethis isn't something the framework uses, but either the compiler or in this case it is the editor (Visual Studio, not sure about Code or Ryder) that uses the attribute.Nunit already uses the Nullable and IsExternalInit assemblies that supply attributes.
I haven't seen one for the others, so we can add them conditionally ourselves.
@RenderMichael Can you add the below to your PR (drop the .txt extension), build it and see if the editor picks it up.
StringSyntaxAttribute.cs.txt
RenderMichael commentedon Jul 26, 2023
@manfred-brands That worked! I pushed the changes to the associated PR, but I wasn't sure where you prefer the string syntax attribute polyfill, or what copyright header the file should have.
lahma commentedon Jul 26, 2023
Just throwing ideas from outside, but have you folks considered https://github.com/Sergio0694/PolySharp to get coherent polyfillls for missing features? There's also https://github.com/SimonCropp/Polyfill , they both aim to provide the features without creating a library dependency.
manfred-brands commentedon Jul 27, 2023
@lahma Thanks for that.
We are already using Nullable and IsExternalInit to get Nullable attributes in.
I did check to see if there was a matching one for the new arguments but didn't find it.
Now you pointed them out, I will investigate them to replace the ones we currently use.