Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / All-Topics

Curious Case of Visual Studio Project Compatibility

0.00/5 (No votes)
17 May 2013CPOL2 min read 4.7K  
This is a curious case of Visual Studio Project compatibility.

Introduction

Recently, I was asked at work for quick review of a small project. It was created (or updated) in the newest version of Visual Studio - 2012. I don't have installed VS 2012.

I could install it, yes, but it would be just a waste of time since browsing through code in that project took me only a few hours.

So I decided to try to open that in VS 2010.

It was not surprised that didn't work entirely. I was expected that I won't have the possibility of building it - .NET 4.5 was not even installed on my machine. But to see "incompatible" next to project name was a surprise to me indeed. It was strange I was suspecting that lack of .NET 4.5 binaries could cause that. But installation of framework did not help. I was still seeing this:

That is strange. I would have thought that Microsoft at least would allow me to browse through files and see contents of project. I guess they would try every little thing they can to sell their newest software Smile.

So I thought to try to open this project in version 2008. Just for fun and I was surprised it worked Cool. I even get a message 'build succeeded' when I tried it, but I have to mention that was only once and after opening files with errors (non existent namespaces and classes), it no longer worked Smile. But it was ok since I was only required to look at the code inside.

After 'build succeeded' information, I tried to open project properties of project and get this:

So, if the project had no framework at all, it could skip building entirely and since there was no errors, it succeeded. Smile

Nevertheless, I have done my work using VS2008.

Why Microsoft would block something in VS2010 and not in 2008. Maybe users of the second one are considerably less numerous so it was just too expensive to do such a thing.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)