我们有多个配置文件(app.DEV.config、app.TEST.config 等)和一个将正确的配置文件复制到 app.config 的预构建事件。显然,配置特定文件位于源代码管理中 --- 但目前 App.Config 也是如此,但不应该如此。
我如何才能将该文件标记为从源代码管理中排除,但显然不从项目中排除。
我正在使用 VS 2005 和 2005 Team Explorer。
在TFS2012中很简单,创建一个.tfignore文件
http://msdn.microsoft.com/en-us/library/tfs/ms245454%28v=vs.110%29.aspx#tfignore http://msdn.microsoft.com/en-us/library/tfs/ms245454%28v=vs.110%29.aspx#tfignore
######################################
# Ignore .cpp files in the ProjA sub-folder and all its subfolders
ProjA\*.cpp
#
# Ignore .txt files in this folder
\*.txt
#
# Ignore .xml files in this folder and all its sub-folders
*.xml
#
# Ignore all files in the Temp sub-folder
\Temp
#
# Do not ignore .dll files in this folder nor in any of its sub-folders
!*.dll
# EDIT https://msdn.microsoft.com/en-us/library/ms245454(v=vs.110).aspx#tfignore
# A filespec is recursive unless prefixed by the \ character.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)