更新时间:2023-12-05 20:35:04
对于我来说,差别取决于Web项目是否在Visual Studio中打开。
For me, the difference depends on whether or not the web project is open in Visual Studio.
我发现,如果我提交的项目文件版本控制与项目打开Visual Studio中的子类型元素是present。关闭该解决方案/项目然后删除该项目文件中的子类型的元素。现在,我总是确保我的提交与VS中关闭项目,避免项目文件中不必要的变化进行的。
I find if I commit the project file to version control with the project open in Visual Studio the SubType elements are present. Closing the solution/project then removes the SubType elements from the project file. Now I always ensure my commits are performed with the project closed in VS to avoid unnecessary changes to the project file.