Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们的源代码控制引擎时不时地指示ProductVersion.csproj 文件中的 .csproj 文件已更改。我们使用的是 VS2008 SP1。
ProductVersion
查看代码库,我可以看到报告的两个版本:
<ProductVersion>9.0.30729</ProductVersion>
和
<ProductVersion>9.0.21022</ProductVersion>
有谁知道 Visual Studio 为什么以及何时决定更改此设置,以及这两个版本号指的是什么?
那是用于加载 .csproj 的 Visual Studio 版本,因此它知道项目可能包含哪些功能(如果新版本的 VS 更改了 proj 文件的格式)。
加载项目时它会发生变化 - VS 正在默默地对项目文件进行次要“升级”。
查看 VS2005 proj 文件,您会看到 ProjectVersion 设置为 8.0.xxx