为颠覆和Visual Studio项目的最佳实践 [英] Best practices for Subversion and Visual Studio projects

查看:166
本文介绍了为颠覆和Visual Studio项目的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始在Visual Studio中的各种C#项目工作作为将用来替换的从C语言编写的各种程序和脚本的补鞋,一起建立了我们目前的系统大规模系统计划的一部分和Perl。我现在工作的项目已经达到了临界点为正致力于颠覆。我想知道什么应该和不应该被提交到存储库的Visual Studio项目。我知道,这将产生那些刚刚建立的工件和并不真正需要提交的各种文件,我想知道是否有人有对正确使用SVN使用Visual Studio的任何建议。目前,我使用的是1.6 SVN服务器的Visual Studio 2010测试版。任何建议,意见都欢迎。

I've recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that's built from a cobbling-together of various programs and scripts written in C and Perl. The projects I'm now working on have reached critical mass for being committed to subversion. I was wondering what should and should not be committed to the repository for Visual Studio projects. I know that it's going to generate various files that are just build-artifacts and don't really need to be committed, and I was wondering if anybody had any advice for properly using SVN with Visual Studio. At the moment, I'm using an SVN 1.6 server with Visual Studio 2010 beta. Any advice, opinions are welcome.

推荐答案

根据MSDN

您可以将以下文件添加到Visual Studio源代码控制:

You can add the following files to Visual Studio source control:


      
  • 解决方案文件( *。SLN )。

  •   
  • 项目文件,例如,。*的csproj *。vbproj 文件。

  •   
  • 应用程序配置文件,基于XML的,用来控制一个Visual Studio项目的运行时行为。

  •   
  • Solution files (*.sln).
  • Project files, for example, *.csproj, *.vbproj files.
  • Application configuration files, based on XML, used to control run-time behavior of a Visual Studio project.

这是不能添加到源代码管理的文件包括以下内容:

Files that you cannot add to source control include the following:


      
  • 解决方案用户选项文件( *。锁)。

  •   
  • 项目选择的用户文件,例如, *。csproj.user *。vbproj.user 文件。

  •   
  • 网页信息的文件,例如, *。csproj.webinfo *。vbproj.webinfo ,即控制Web项目的虚拟根位置。

  •   
  • 构建输出文件,例如, *。dll的 *。exe文件文件。

  •   
  • Solution user option files (*.suo).
  • Project user option files, for example, *.csproj.user, *.vbproj.user files.
  • Web information files, for example, *.csproj.webinfo, *.vbproj.webinfo, that control the virtual root location of a Web project.
  • Build output files, for example, *.dll and *.exe files.

这篇关于为颠覆和Visual Studio项目的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆