-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to extract constants from static field accesses #36
Comments
Hi, thank you for your issue. Since I am overwhelmed with my other project https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc, I did not have a lot of time to support this one. Will try to publish a new package during the weekend. Thank you for your patience! |
Would you be able to publish an updated package @ivaylokenov? Yours is a really great project and the best library for this purpose but not really usable with ASP.NET Core MVC 3.1. |
I've been using this library without issue for some time, including in .NET Core 2.x apps, so thanks for that 馃檪
However, I've just come across an issue with standard constants exposed as static fields like
Guid.Empty
andstring.Empty
. Basically, they are ignored during URL generation inExpressionRouteHelper
, in theMemberAccess
branch:AspNet.Mvc.TypedRouting/src/AspNet.Mvc.TypedRouting/LinkGeneration/ExpressionRouteHelper.cs
Lines 234 to 246 in 2994a60
As they're not a
ConstantExpression
, that branch returns null, no value is generated for the parameter, and link generation completely fails.The text was updated successfully, but these errors were encountered: