Live data from Hacker News

Visual Studio 2015 and .NET 4.6 Available for Download

blogs.msdn.com

51–60 of 128 posts

Re: Visual Studio 2015 and .NET 4.6 Available for Download

#51

Too bad this does only contain the preview of .NET 5. I hoped this release would bring a more stable version of .NET 5

It contains .NET 4.6, which is stable and not .NET 5. AFAIK, .NET 5 doesn't exist?

highmastdon is referring to this release containing only a preview of ASP.NET 5. Note the ASP.

Re: Visual Studio 2015 and .NET 4.6 Available for Download

#54
I'm really loving how the refactor and generate stuff has developed over the years. It is such a different experience these days and I'm probably at least five times as productive as a result of it.

First we had no refactor tools at all, and how we survived I'll never now

Then basic refactor tools where introduced. You could call up a dialog to do explicit refactoring.

Then the generate functionality was introduced and you could start doing things like typing out a class name that didn't exist, right-click and generate a class and file with that name.

Now everything been taken to the far end. I can just edit parameters, types etc directly in the editor, a light bulb will appear, I click it and choose how it will apply refactoring regarding my changes. If I want to change the type returned from a method inherited from a base class I can just edit it in the derived class and have it apply it on the base class.

Same with generate, just type a lot stuff like you want it to be, a light bulb will appear and it generates everything with correct parameters and all.

If I want to break stuff out of a blob class to a another class called by the original class, I just highlight the methods in the editor and chose "create new class" and it will add initialization for the new class, a field or property for it.

Sometimes when I need to split a class in two there really isn't any good refactoring tool. So what do you do? Copy the class and rename it so you have them side by side in the same file. Eliminate the fields and properties for each that you don't want in either. It will now highlight all the code you've broken. Now delete and change all that has been highlighted. Then just click the light bulb and choose "move class to file named whatever.class". Voila! It's such a streamlined process.

Or just things like Ctrl-clicking something to navigate to it (or pressing F12). Or quickly finding what code calls a method. Or snippet templates like ctor or prop.

To put the cherry on the cake I can press Ctrl-M+Space and Ctrl-M+Z to have the Code Maid plugin reorganize the code and normalize white space.

Seeing, doing and navigating has all come together so nicely and totally changed the way I code. It has made constant and continuous refactoring feasible and effortless. The only downside is that I'm not always sure where Visual Studio ends and Resharper begins :)

The thing I miss though is unit testing being as "on-the-fly" and integrated into the editor. I'd love to be able to write mini-tests as annotations to methods and have VS highlight when it breaks them.

... and maybe continuous background compiling and "live-updating" of apps :)

Re: Visual Studio 2015 and .NET 4.6 Available for Download

#56

There are more details about the .NET 4.6 release on the .NET blog [1] [1] http://blogs.msdn.com/b/dotnet/archive/2015/07/20/announcing...

It's well worth trying .NET 4.6 out if you'd benefit from a performance improvement. I noticed dramatic free performance improvements in Disruptor.NET with the .NET 4.6 CTP.

Re: Visual Studio 2015 and .NET 4.6 Available for Download

#57
post #38

Earlier quoted context omitted.

They offer a detailed comparison matrix here... https://www.visualstudio.com/en-us/products/compare-visual-s...

Which also omits any ability to compare features to what the Express edition offers.

True - I believe express is the same as in 2013 - you cant use extensions and it targets specific platforms (desktop, web).

Re: Visual Studio 2015 and .NET 4.6 Available for Download

#58
post #47

There are more details about the .NET 4.6 release on the .NET blog [1] [1] http://blogs.msdn.com/b/dotnet/archive/2015/07/20/announcing...

Glad to that developement on WPF has not stagnated.

Surprisingly, there was even a winforms update recently.

Re: Visual Studio 2015 and .NET 4.6 Available for Download

#59

Has anyone done anything interesting with Roslyn to date (v1 is mentioned in the notes)?

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

#60
post #45

Earlier quoted context omitted.

RTM = Release to Manufacturing = full version.

How about my release candidate that I installed about a month back? Will it update automatically? Does it even need to? Did anything change?

If you're building Windows 10 Universal apps you should hold off until Windows 10 is released on the 29th. I just ran the VS2015 Community installer and it prompted me to remove the Windows 10 Universal Apps Tools RC.
Post reply on HN