last day (15 days later) » 

10:45 PM
0
Q: Convert C# classes to TypeScript definitions in ASP.NET vNext class library

Joshua BarronI am looking for a method to convert C# classes (mostly plain old view models) into corresponding TypeScript interface definition files. My view models live in an ASP.NET vNext class library. Most of the existing methods and packages work via T4 templates, which vNext currently has no support...

 
I don't know of a built in way. And asking someone to come up with some code to do it is too broad of a question, and asking someone to recommend a tool to do it is off topic.
 
I suppose I could move this to Software Recommendations, though it's a bit of a graveyard. Not sure how the question is any more broad than the other 10 questions about how to do this, especially since my question is scoped to a very specific set of constraints.
 
It would be too broad because you're basically asking someone to code a solution for you. Which is what you normally pay people to do. It would not be too broad to attempt coding your own solution, then ask for help with a specific part of your attempt if you were to get stuck.
In the past, questions like that may have been more tolerated. Other questions that don't meet our current rules doesn't allow you to skirt the rules yourself.
 
I see what you're saying, but I'm not asking a question without prior work - just because I'm not showing code doesn't mean I haven't tried things (I listed my failed approaches in the question). If this question is too broad then the linked (massively upvoted) question is certainly too broad as well.
 
That doesn't address any of the issues I raised. Saying you tried some stuff isn't sufficient. Show your attempt at writing code that would solve the issue, and explain where you're stuck. That would narrow the question down so that it isn't too broad.
 
10:48 PM
I think you're missing that the solution to this question very likely does not involve writing code from scratch. This is pretty much a tools question and an architecture question about ASP.NET vNext.
I mean, I can take a crack at writing some reflection tool but I know that isn't optimal - so I'm asking for the best approach, not necessarily a tool.
 
If it is "pretty much a tools question" then your question is clearly off topic. Asking for us to recommend tools isn't allowed.
 
I'm not asking for tools
I'm asking about a tool
which is clearly on-topic
Do you think there is a good way for me to improve this question that would make it less broad?\
 
No, you're asking for tools that would perform a specific action within the ASP.NET vNext architecture. Off-topic.
Yes, I've already told you. Make an attempt at writing your own code to solve the issue. If you get stuck, then ask about it. Or if you're looking for an existing tool, check out Software Recs or do your own web searches.
 
Ok, I guess I may delete this question and ask smaller questions about the vNext build pipeline.
Guess I should vote to close all related questions though right?
The one I linked, I mean
 
And so long as they're on topic I won't have a problem with that. I'm not trying to pick on you. Just trying to keep our site clean. Yes, you are welcome to flag/vote those questions too, though I suspect you're just being facetious now. I will certainly vote to close it. By the way, two other people voted on your question, agreeing it was too broad.
 
10:55 PM
No, not being facetious
I care about site quality as well, though I would say SO has a particular eagerness for closing questions due to volume
Guess I'm used to the more relaxed environment over on UX
I just asked about closing the related one since I used that as a basis for mine being on topic
so I figure it should be closed for future question-askers
 
Perhaps so, but SO is also one of the best programming resources out there, and I see it as an important tool to enforce the rules and uphold community consensus, even if sometimes I may not agree with it.
 
Thanks for the discussion
 
no problem
 

last day (15 days later) »