开发者

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

Is there a way to tell if the project was done in Visual Studio 2008 Express Edition or higher (pay) versions were used? Like if you were handed over a project and they ask you what version of Visual Studio was it created with (except the obvious 2005/2008/2010 difference).开发者_高级运维

With regards,

MadBoy


The .sln file contains a comment with the version used to create it, or it does on mine. Using the VS2010 RC it has "Visual Studio 2010" whereas an old project created in the C# Express edition has "Visual C# Express 2008". It appears opening and converting the project to a newer VS version updates the comment too.


Apart from the obvious stuff in the solution file, the only give-aways in the project files are the

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

which is set to 3.5 in VS2008, and the

<ProductVersion>9.0.30729</ProductVersion>

tag, which doesn't change when you convert the project from VS2008 to VS2010 (well, not at the moment), and the

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

tag which imports web app extension targets (this is set to v9.0 in VS2008, and is only on the web app project).

In any case, i wouldn't be too concerned about which edition of VS to use, apart from the lack of integrated source control and the lack of add-ins in the express version, it'll doo pretty much anything its bigger brothers will.


You can open the solution and project files in notepad, the edition will be written there.


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


It depends - If you submit just the source code without the sln file, or if you submit just the binaries. but - there are other tellers - like if you submit the entire directory and someone can see that the project was source-controlled (which is not a feature of the express I believe) one can tell the difference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜