News for hackers. Stuff that matters.
Re:Visual Studio 2015 and .NET 4.6 Available for Download by rottyguy on Monday July 20, 2015 @11:48AM (#9916814)
Has anyone done anything interesting with Roslyn to date (v1 is mentioned in the notes)?
Re:Visual Studio 2015 and .NET 4.6 Available for Download by JamesBarney on Monday July 20, 2015 @12:57PM (#9917318)
I 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.

Re:Visual Studio 2015 and .NET 4.6 Available for Download by skMed on Monday July 20, 2015 @02:32PM (#9918027)
Do 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.
Re:Visual Studio 2015 and .NET 4.6 Available for Download by JamesBarney on Monday July 20, 2015 @04:11PM (#9918682)
In 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.

Re:Visual Studio 2015 and .NET 4.6 Available for Download by rottyguy on Monday July 20, 2015 @01:28PM (#9917566)
Interesting... Was suspecting (hoping) that the technology would provide solutions outside ide/code space.

Could you provide some highlevel details of the implementation? TIA!

Re:Visual Studio 2015 and .NET 4.6 Available for Download by ohitsdom on Monday July 20, 2015 @12:38PM (#9917198)
Fog Creek used it to replace their custom compiler.

http://blog.fogcreek.com/killing-off-wasabi-part-2/

Re:Visual Studio 2015 and .NET 4.6 Available for Download by wluu on Monday July 20, 2015 @09:10PM (#9920084)
It's perhaps also worth looking at Microsoft's 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/XUni...

Re:Visual Studio 2015 and .NET 4.6 Available for Download by Permit on Monday July 20, 2015 @02:56PM (#9918192)
Im working on building a live coding environment for VS with Roslyn: http://comealive.io.
Re:Visual Studio 2015 and .NET 4.6 Available for Download by RobotCaleb on Tuesday July 21, 2015 @12:17PM (#9923338)
Nice! That looks great.
Re:Visual Studio 2015 and .NET 4.6 Available for Download by wluu on Monday July 20, 2015 @06:23PM (#9919512)
It's not using v1 yet, but check out omnisharp https://github.com/OmniSharp/omnisharp-roslyn
Re:Visual Studio 2015 and .NET 4.6 Available for Download by cm2187 on Monday July 20, 2015 @12:06PM (#9916965)
I 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!

Re:Visual Studio 2015 and .NET 4.6 Available for Download by Locke1689 on Monday July 20, 2015 @12:10PM (#9916993)
http://source.roslyn.io is pretty cool and the Omnisharp IDE uses Roslyn