ASP.Net 网站项目中 vwd.webinfo 文件的用途是什么?
我有一个 ASP.Net 2.0 Web 项目,它被设置为一个网站(我相信是一个文件系统网站,但不确定)。 vwd.webinfo 文件是一个经常更改的文件。它位于项目的根文件夹中,如下所示:
<?xml version="1.0" encoding="UTF-8"?><VisualWebDeveloper>
<!--
Visual Studio global web project settings.
-->
<StartupServices>
<Service ID="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}"/>
</StartupServices>
</VisualWebDeveloper>
如果我在 SVN 下查看此文件的修订历史记录,并将每个修订版本与前一个修订版本进行比较,唯一的区别是添加了稍后版本中的空行,添加在
标记之前。因此,在过去 10 次修订中,文件中添加了 10 个新的空行。很奇怪。
- 有人知道这是怎么回事吗?
- 这个文件有什么作用,为什么它经常变化?
- 我可以删除它吗?
- 如果没有,我可以将其从源代码管理中排除吗?
- 是否需要包含它才能部署到实时服务器?
I have an ASP.Net 2.0 web project, which is setup as a Web Site (a file system web site I believe, though not sure). One file that keeps changing very often, on its own, is the vwd.webinfo file. It is located in the root folder of the project, and this is what it looks like:
<?xml version="1.0" encoding="UTF-8"?><VisualWebDeveloper>
<!--
Visual Studio global web project settings.
-->
<StartupServices>
<Service ID="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}"/>
</StartupServices>
</VisualWebDeveloper>
If I go to the revision history of this file under SVN, and compare each revision to the previous one, the only difference has been the addition of a blank line to the later revision, added just before the <Service>
tag. So over the last 10 revisions, there have been 10 new blank lines added to the file. Very weird.
- Anybody know what is going on here?
- What does this file do, and why does it keep changing so often?
- Can I delete it?
- If not, can I exclude it form source control?
- Does it need to be included for deployment to a live server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎与 VS 2005 的特定(测试版)版本有关。
检查 http://ljusberg.se/blogs/smorakning/archive/2006/07/05/vwd.webinfo.aspx
Seems to be related to specific (Beta) versions of VS 2005.
Check http://ljusberg.se/blogs/smorakning/archive/2006/07/05/vwd.webinfo.aspx
该文件仍然存在于 Visual Studio 2015 中。当您在解决方案资源管理器中右键单击网站项目并选择属性窗口时,它包含一些设置。
这是我的样子。
这看起来应该包含在源代码管理中,但不需要部署到网络服务器。
The file still exists in Visual Studio 2015. It contains some of the settings when you right-click on a Web Site project in Solution Explorer and choose Properties Window.
Here is what mine looks like.
That looks like something that should be included in source control but does not need to be deployed to a webserver.