从TFS2008中排除网站Bin目录(Excluding Website Bin directory from TFS2008)

编程入门 行业动态 更新时间:2024-10-26 06:28:21
从TFS2008中排除网站Bin目录(Excluding Website Bin directory from TFS2008)

我目前正在VS2008中开发一个Web站点(而不是Web应用程序)。 我有一个问题,但TFS2008处理BIN目录中的DLL的方式。 我不希望他们被检入TFS - 这可以防止团队中的其他开发人员构建网站,因为TFS只允许检查它们。 我试过隐藏TFS中的目录(它仍然试图检查它们 - 添加它们)。 您不能通过解决方案资源管理器排除BIN目录,因为它是网站的必需目录。

那么我该如何设置配置来处理这个呢?

I am currently developing a Web Site (not a Web Application) in VS2008. I have a problem however with the way that TFS2008 handles the DLLs in the BIN directory. I do not want them being checked into TFS - this prevents other developers on the team from building the website as TFS will only allow checking them out exclusively. I have tried cloaking the directory in TFS (it still tries to check them out - adding them). You can not exclude the BIN directory via the Solution Explorer as it is a required directory for a web site.

So how should I go about setting the configuration to handle this?

最满意答案

将所有共享程序集放入主“trunk”文件夹下的“lib”目录中,并从“lib”引用它们到您的Web站点。 在这种情况下,TFS不会将程序集签入到您网站的“bin”文件夹中,但它只会添加一个与您的程序集同名并带有“.refresh”扩展名的文本文件(例如MyAssembly)。 dll.refresh)包含指向实际程序集位置的单行。

然后,当您右键单击解决方案并单击“签入”时,它将不会选择“bin”文件夹中的程序集,并且它们不会被锁定。 虽然如果您从团队资源管理器中单击“签入”,它将自动检查程序集,因此您必须小心。

我们从Web站点迁移到Web应用程序的原因之一是因为它是使用TFS处理此类项目的真正PITA。

Put all shared assemblies into a "lib" directory under your main "trunk" folder and reference them into your Web Site from "lib". In this case TFS will not check-in the assemblies into the "bin" folder of your web site but it will only add a text file which has the same name as your assembly and with the ".refresh" extension (for example MyAssembly.dll.refresh) which contains a single line pointing to the location of the real assembly.

Then when you right-click on the Solution and click on Check-In it will not select the assemblies in the "bin" folder and they will not be locked. Although if you click on Check-In from the Team Explorer it will automatically check the assemblies so you have to be careful.

One of the reasons we migrated from Web Site to a Web Application was because it was a real PITA to handle this type of projects with TFS.

更多推荐

本文发布于:2023-07-15 05:20:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1110618.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:目录   网站   Bin   Website   Excluding

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!