What controls the ProductVersion setting in .cspro

2019-04-22 21:08发布

Every now and then our source control engine indicates that the ProductVersion in a .csproj file has changed. We're using VS2008 SP1.

Looking through the codebase I can see two versions reported:

<ProductVersion>9.0.30729</ProductVersion>

and

<ProductVersion>9.0.21022</ProductVersion>

Does anyone know why and when Visual Studio decides to change this setting, and to what these two version numbers refer?

标签: c# .net csproj
1条回答
时光不老,我们不散
2楼-- · 2019-04-22 21:40

That's the version of Visual Studio used to load the .csproj, so it knows what capabilities the project might contain (if new versions of VS change the format of the proj file).

It will change when the project is loaded - VS is silently doing a minor 'upgrade' to the project file.

Look at a VS2005 proj file, you'll see the ProjectVersion is set to 8.0.xxx

查看更多
登录 后发表回答