简体   繁体   English

从 tfs 获取最新的批处理文件,包括排除的文件,并发布 ASP.NET 项目

[英]batch file to take the latest from tfs, include the excluded files,and publish the ASP.NET project

I need to create a batch file that will take the latest of my ASP.NET project from TFS, compile and finally publish the project.我需要创建一个批处理文件,它将从 TFS 获取我的 ASP.NET 项目的最新版本,编译并最终发布该项目。 This has been implemented.这已经实施。 Howewer there are few more things that this batch file needs to take care of which one is that if there are any files in the project in excluded mode should be automatically included in the project through the batch file.然而,这个批处理文件需要处理的事情很少,其中一个是如果项目中有任何处于排除模式的文件,应该通过批处理文件自动包含在项目中。 I have used visual studio msbuild command line tool to accompolish all my requirements.我使用 visual studio msbuild 命令行工具来完成我的所有要求。 Please let me know if there is some command which i can use to include the excluded files of the project.如果有一些命令可以用来包含项目的排除文件,请告诉我。

THANKS IN ADVANCE.提前致谢。

Including currently excluded files in the compile requires changes in the project file.在编译中包含当前排除的文件需要更改项目文件。 You would have to scan the folders to work out what files are excluded, then programmatically change the project file to include them in the appropriate project and then trigger the compile.您必须扫描文件夹以确定排除了哪些文件,然后以编程方式更改项目文件以将它们包含在适当的项目中,然后触发编译。

There's no command to do this and I must admit I'm curious as to why you would want to since a broken build may not be replicable on developers machines if a problem exists in one of the excluded files.没有执行此操作的命令,我必须承认我很好奇您为什么要这样做,因为如果其中一个排除文件中存在问题,则损坏的构建可能无法在开发人员机器上复制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM