Is there a way to find out from the code if the application was developed in Visual Studio 2008 Express or Standard or Pro?

Is it possible to determine if the project was completed in Visual Studio 2008 Express Edition or higher (payment)? For example, if a project was handed over to you and they ask what version of Visual Studio was created with (except for the obvious difference in 2005/2008/2010).

Concerning,

Madboy

+4
source share
5 answers

The .sln file contains a comment with the version used to create it, or on mine. Using the VS2010 RC, it has “Visual Studio 2010”, while the old project created in the C # Express version has “Visual C # Express 2008”. It seems that opening and converting the project into a new version of VS also updates the comment.

+3
source

Besides the obvious things in the solution file, only the project files have files

 <Project ToolsVersion="4.0" ....> 

which is set to 3.5 in VS2008, and

 <ProductVersion>9.0.30729</ProductVersion> 
tag

which does not change when converting a project from VS2008 to VS2010 (well, not at the moment) and

 <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> 
tag

which imports web application extension targets (this is installed on v9.0 in VS2008 and only in a web application project).

In any case, I would not worry too much about which VS edition to use, in addition to the lack of integrated source control and the lack of add-ons in the express version, it will be almost anything bigger brothers.

+2
source

You can open the solution and project file in notepad, the publication will be written there.

+1
source

If the whole solution contains only C # projects or VB.NET projects or web projects, you cannot determine if it was developed in Express, Standard or Pro.
But if the solution contains more than one type of project, at least you can say that it was not developed in Express, because in Express you cannot mix (for each there is one separate version of Express).

0
source

It depends - if you send only the source code without a sln file or send only binary files. but there are other counters - for example, if you send the entire directory, and someone can see that the project was controlled by the source code (which is not a sign of the expression that I think), you can tell the difference.

-1
source

Source: https://habr.com/ru/post/1301241/