3 ms·
Has anyone done anything interesting with Roslyn to date (v1 is mentioned in the notes)?
by rottyguy 11y ago
Has anyone done anything interesting with Roslyn to date (v1 is mentioned in the notes)?
- cm2187 11y agoI think LINQPad now uses Roslyn. I would be great if this would trigger a flurry of VBA-style IDE to use VB/C#/F# in Excel or any major non Microsoft software!
- Locke1689 11y agohttp://source.roslyn.io http://source.roslyn.io is pretty cool and the Omnisharp IDE uses Roslyn
- ohitsdom 11y agoFog Creek used it to replace their custom compiler. http://blog.fogcreek.com/killing-off-wasabi-part-2/ http://blog.fogcreek.com/killing-off-wasabi-part-2/
- JamesBarney 11y agoI was working on a large enterprise application that had a dynamically generated data model, so all data access was done through strings. So much of the code looked like dictionary accesses "if(car[Constants.Wheels"].ContainsKey[Constants.FrontLeftWheel])" Now unfortunately there was not just one constants file, this application numbered nearly 60 projects and each one possessed a constants file and people added strings when they needed to access a new item from the data model. public class Constants { string FrontLeftWheel = "FrontLeftWheel; } I was given the painful task of replacing every single constant and string in the code with new constants generated from the data model. This probably involved making something along the lines of 40,000 replacements. Luckily I remembered a post by Eric Lippert on Roslyn. Roslyn helped me replace all of the old constants with constants generated from the new data model based on a few heuristics to order by best matches but Roslyn saved me months of mind numbing work so I'ma HUGE fan.
- rottyguy 11y agoInteresting... Was suspecting (hoping) that the technology would provide solutions outside ide/code space. Could you provide some highlevel details of the implementation? TIA!
- skMed 11y agoDo you think you could write a blog post about this? Finding interesting uses for Roslyn may help drive its use in the community. Plus, that just sounds interesting.
- JamesBarney 11y agoIn response to the two replies. Sure I'll write up a blog post this weekend with the high level details and link to it here when I'm finished.
- Permit 11y agoIm working on building a live coding environment for VS with Roslyn: http://comealive.io http://comealive.io.
- RobotCaleb 11y agoNice! That looks great.
- wluu 11y agoIt's not using v1 yet, but check out omnisharp https://github.com/OmniSharp/omnisharp-roslyn https://github.com/OmniSharp/omnisharp-roslyn
- wluu 11y agoIt's perhaps also worth looking at Microsoft's CodeFormatter: https://github.com/dotnet/codeformatter https://github.com/dotnet/codeformatter It rewrites code to match their coding style. We used the xunitconverter (which is part of the codeformatter repo) recently to convert a whole bunch of old MS Test based unit tests to xUnit. https://github.com/dotnet/codeformatter/tree/master/src/XUnitConverter https://github.com/dotnet/codeformatter/tree/master/src/XUni...