-
Notifications
You must be signed in to change notification settings - Fork 34
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for attribute-based route names #44
Comments
IIRC, that's what |
Hi, yes, I believe that you are right, but I meant for Controller-level attribute routing. Like so :
I forked your code and did some modifications but the build validation step is failing with the following error:
Any idea why? The existing code base is using The offending code is:
|
It could be a tool versioning issue. CA is getting more and more fucked up, because different versions of Visual Studio come with different CA profiles. Which version of VS are you using? |
I'm using Visual Studio 2015 Enterprise Update 3, the IDE builds the code & runs the tests just fine. |
Sounds like my setup as well... |
I dug a bit deeper, and there's only one case of |
It turns out that that suppression reason is fairly accurate after all. This is easy to discover if you remove that
ASP.NET Web API wants the It's been years since I wrote that, so I can't remember all of the details, so I wonder if the |
You're right, there was a suppress attribute that I missed when I moved that particular bit of code to its own method. How important are the F# tests? I don't have F# installed so I only added a test in the c# test project. |
The F# tests aren't that important; they're mostly there in order to verify that the I can always add one or two for new methods, if I feel like it. |
Thanks, I just submitted a pull request (#45) |
I am using attribute routing in my controllers, using the
[Route]
attribute with route names, and I noticed that Hyprlinkr always assumes that there's a route named 'DefaultApi' to generate the Uris, which does not work with attribute routing.Is that correct, or am I missing something?
Thank you
The text was updated successfully, but these errors were encountered: