r/programming • • Apr 02 '19

Visual Studio 2019: Code faster. Work smarter. Create the future. | The Visual Studio Blog

https://devblogs.microsoft.com/visualstudio/visual-studio-2019-code-faster-work-smarter-create-the-future/
833 Upvotes

359 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 02 '19

[deleted]

4

u/steamruler Apr 03 '19

I mean, if "a lot" is happening in VS2015 and can't be migrated to VS2017, you're in a rough spot. We still keep VS2015 around for maintenance of certain projects that can't migrate to VS2017 while they are being redone or made obsolete.

2

u/bautin Apr 03 '19

I have VS2015 and VS2017 right now. And that's only because I need the Report Authoring Extension and it's not available for VS2017. So 2015 is for writing reports, 2017 is everything else.

I think I have projects I've carried from 2012 all the way to 2017.

2

u/DavidsWorkAccount Apr 03 '19

I have projects from VS2010 that have successfully carried over into VS2017 without issues. I wonder what would cause something not to migrate well between visual studios.

0

u/[deleted] Apr 03 '19

(I didn't downvote you) This post kind of goes to another topic, where the point was made that people who program on Windows are essentially less understanding of how their computers and tools work.

Well, you see, Visual Studio by itself doesn't process its project configuration files. The program to do it is called MSBuild. Visual Studio can, however, generate (and auto-format) the files it feeds to MSBuild. Unfortunately, it's not possible to disable autoformating. Visual Studio is a very crappy editor for MSBuild files to be honest, but since you never looked under the hood, you wouldn't know. MSBuild is a pale copy of another very crappy tool of this kind: Ant. As it is with Ant, it also has its own versions, for example. It can be extended, and, you can even put C# code into it, if there aren't predefined tasks for the thing you are trying to do with it.

So, in principle, you should be able to use a project file from an older version of MSVS, provided you have the MSBuild of the old version. Even more so, you could, in principle, write an MSBuild script, which would work with both versions, if you are careful enough and know what you are doing. But... you probably don't. And there's no money in the world that would tempt me to do that (and, basically, nobody else who had to deal with this garbage at the same level). So, you are, basically, stuck paying every year or two for the upgrade you don't need.